Skip to content

Commit 4ae0b0e

Browse files
authored
Merge pull request #961 from apjanke/fix-broken-or-redirect-links
Fix redirected and broken links
2 parents 5187d58 + 808eb3a commit 4ae0b0e

26 files changed

+98
-98
lines changed

docs/_templates/sidebarintro.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ <h3>Contributors</h3>
5959
<h3>Useful Links</h3>
6060
<ul>
6161
<li><a href="https://docs.python-guide.org/">The Guide Website</a></li>
62-
<li><a href="http://github.com/realpython/python-guide">The Guide @ GitHub</a></li>
63-
<li><a href="http://github.com/realpython/python-guide/issues">Issue Tracker</a></li>
62+
<li><a href="https://github.com/realpython/python-guide">The Guide @ GitHub</a></li>
63+
<li><a href="https://github.com/realpython/python-guide/issues">Issue Tracker</a></li>
6464
<li><a href="https://media.readthedocs.org/pdf/python-guide/latest/python-guide.pdf">The Guide as a PDF</a></li>
6565
</ul>
6666

@@ -69,8 +69,8 @@ <h3>Translations</h3>
6969
<li><a href="https://docs.python-guide.org/">English</a></li>
7070
<li><a href="https://python-guide-fr.readthedocs.io/fr/latest/">French</a></li>
7171
<li><a href="https://pythonguidecn.readthedocs.io/zh/latest/">Chinese</a></li>
72-
<li><a href="http://python-guideja.readthedocs.io/ja/latest/">Japanese</a></li>
72+
<li><a href="https://python-guideja.readthedocs.io/ja/latest/">Japanese</a></li>
7373
<li><a href="https://python-guide-kr.readthedocs.io/ko/latest/">Korean</a></li>
74-
<li><a href="http://python-guide-fil.readthedocs.io/en/latest/">Filipino</a></li>
75-
<li><a href="http://python-guide-pt-br.readthedocs.io/pt_BR/latest/">Brazilian Portuguese</a></li>
74+
<li><a href="https://python-guide-fil.readthedocs.io/en/latest/">Filipino</a></li>
75+
<li><a href="https://python-guide-pt-br.readthedocs.io/pt_BR/latest/">Brazilian Portuguese</a></li>
7676
</ul>

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
# General information about the project.
4848
project = u'pythonguide'
49-
copyright = u'2011–2018 <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a> &amp; <a href="https://realpython.com">Real Python</a>. <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">CC BY-NC-SA 3.0</a>'
49+
copyright = u'2011–2018 <a href="https://www.kennethreitz.org/projects">Kenneth Reitz</a> &amp; <a href="https://realpython.com">Real Python</a>. <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/">CC BY-NC-SA 3.0</a>'
5050

5151
# The version info for the project you're documenting, acts as replacement for
5252
# |version| and |release|, also used in various other places throughout the

docs/dev/env.rst

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ using ``<Tab>`` key or any other customized keys.
8787

8888
.. _indent: http://www.vim.org/scripts/script.php?script_id=974
8989
.. _syntax: http://www.vim.org/scripts/script.php?script_id=790
90-
.. _Pyflakes: http://pypi.python.org/pypi/pyflakes/
91-
.. _pycodestyle: https://pypi.python.org/pypi/pycodestyle/
92-
.. _syntastic: https://github.com/scrooloose/syntastic
93-
.. _Python-mode: https://github.com/klen/python-mode
90+
.. _Pyflakes: http://pypi.org/project/pyflakes/
91+
.. _pycodestyle: https://pypi.org/project/pycodestyle/
92+
.. _syntastic: https://github.com/vim-syntastic/syntastic
93+
.. _Python-mode: https://github.com/python-mode/python-mode
9494
.. _SuperTab: http://www.vim.org/scripts/script.php?script_id=1643
9595
.. _vim-flake8: https://github.com/nvie/vim-flake8
9696

@@ -103,7 +103,7 @@ Emacs user is `Python Programming in Emacs`_ at EmacsWiki.
103103

104104
1. Emacs itself comes with a Python mode.
105105

106-
.. _Python Programming in Emacs: http://emacswiki.org/emacs/PythonProgrammingInEmacs
106+
.. _Python Programming in Emacs: https://www.emacswiki.org/emacs/PythonProgrammingInEmacs
107107

108108
TextMate
109109
--------
@@ -135,7 +135,7 @@ Atom
135135
Atom is web native (HTML, CSS, JS), focusing on modular design and easy plugin
136136
development. It comes with native package control and a plethora of packages.
137137
Recommended for Python development is
138-
`Linter <https://github.com/AtomLinter/Linter>`_ combined with
138+
`Linter <https://github.com/steelbrain/linter>`_ combined with
139139
`linter-flake8 <https://github.com/AtomLinter/linter-flake8>`_.
140140

141141

@@ -163,21 +163,21 @@ MIT licensed.
163163

164164
Enthought Canopy
165165
----------------
166-
`Enthought Canopy <https://www.enthought.com/products/canopy/>`_ is a Python
166+
`Enthought Canopy <https://www.enthought.com/product/canopy/>`_ is a Python
167167
IDE which is focused towards Scientists and Engineers as it provides pre
168168
installed libraries for data analysis.
169169

170170
Eclipse
171171
-------
172172

173173
The most popular Eclipse plugin for Python development is Aptana's
174-
`PyDev <http://pydev.org>`_.
174+
`PyDev <https://pydev.org>`_.
175175

176176

177177
Komodo IDE
178178
----------
179179

180-
`Komodo IDE <http://www.activestate.com/komodo-ide>`_ is developed by
180+
`Komodo IDE <https://www.activestate.com/products/komodo-ide/>`_ is developed by
181181
ActiveState and is a commercial IDE for Windows, Mac, and Linux.
182182
`KomodoEdit <https://github.com/Komodo/KomodoEdit>`_ is the open source
183183
alternative.
@@ -188,8 +188,8 @@ Spyder
188188

189189
`Spyder <https://github.com/spyder-ide/spyder>`_ is an IDE specifically geared
190190
toward working with scientific Python libraries (namely
191-
`SciPy <http://www.scipy.org/>`_). It includes integration with pyflakes_,
192-
`pylint <http://www.logilab.org/857>`_ and
191+
`SciPy <https://www.scipy.org/>`_). It includes integration with pyflakes_,
192+
`pylint <https://www.logilab.org/857>`_ and
193193
`rope <https://github.com/python-rope/rope>`_.
194194

195195
Spyder is open source (free), offers code completion, syntax highlighting,
@@ -242,13 +242,13 @@ Virtual Environments
242242
Virtual Environments provide a powerful way to isolate project package dependencies. This means that you can use packages particular to a Python project without installing them system wide and thus avoiding potential version conflicts.
243243

244244
To start using and see more information:
245-
`Virtual Environments <http://github.com/kennethreitz/python-guide/blob/master/docs/dev/virtualenvs.rst>`_ docs.
245+
`Virtual Environments <https://github.com/kennethreitz/python-guide/blob/master/docs/dev/virtualenvs.rst>`_ docs.
246246

247247

248248
pyenv
249249
-----
250250

251-
`pyenv <https://github.com/yyuu/pyenv>`_ is a tool to allow multiple versions
251+
`pyenv <https://github.com/pyenv/pyenv-virtualenv>`_ is a tool to allow multiple versions
252252
of the Python interpreter to be installed at the same time. This solves the
253253
problem of having different projects requiring different versions of Python.
254254
For example, it becomes very easy to install Python 2.7 for compatibility in
@@ -264,7 +264,7 @@ pyenv. pyenv then works out which version of Python should be run based on
264264
environment variables, ``.python-version`` files, and the global default.
265265

266266
pyenv isn't a tool for managing virtual environments, but there is the plugin
267-
`pyenv-virtualenv <https://github.com/yyuu/pyenv-virtualenv>`_ which automates
267+
`pyenv-virtualenv <https://github.com/pyenv/pyenv-virtualenv>`_ which automates
268268
the creation of different environments, and also makes it possible to use the
269269
existing pyenv tools to switch to different environments based on environment
270270
variables or ``.python-version`` files.
@@ -314,7 +314,7 @@ To download and install IPython with all its optional dependencies for the noteb
314314
BPython
315315
-------
316316

317-
`bpython <http://bpython-interpreter.org/>`_ is an alternative interface to the
317+
`bpython <https://bpython-interpreter.org/>`_ is an alternative interface to the
318318
Python interpreter for Unix-like operating systems. It has the following
319319
features:
320320

@@ -334,8 +334,8 @@ features:
334334
ptpython
335335
--------
336336

337-
`ptpython <https://github.com/jonathanslenders/ptpython/>`_ is a REPL build
338-
on top of the `prompt_toolkit <http://github.com/jonathanslenders/python-prompt-toolkit>`_
337+
`ptpython <https://github.com/prompt-toolkit/ptpython>`_ is a REPL build
338+
on top of the `prompt_toolkit <https://github.com/prompt-toolkit/python-prompt-toolkit>`_
339339
library. It is considered to be an alternative to BPython_. Features include:
340340

341341
* Syntax highlighting

docs/dev/virtualenvs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Congratulations, you now know how to install and use Python packages! ✨ 🍰
200200
Lower level: virtualenv
201201
=======================
202202

203-
`virtualenv <http://pypi.python.org/pypi/virtualenv>`_ is a tool to create
203+
`virtualenv <http://pypi.org/project/virtualenv>`_ is a tool to create
204204
isolated Python environments. virtualenv creates a folder which contains all the
205205
necessary executables to use the packages that a Python project would need.
206206

docs/intro/duction.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ include:
2828
object serialization, and much more.
2929

3030
Additionally, the
31-
`Python Package Index <http://pypi.python.org/pypi/>`_ is available
31+
`Python Package Index <https://pypi.org>`_ is available
3232
for users to submit their packages for widespread use, similar to
33-
Perl's `CPAN <http://www.cpan.org>`_. There is a thriving community
33+
Perl's `CPAN <https://www.cpan.org>`_. There is a thriving community
3434
of very powerful Python frameworks and tools like
35-
the `Django <http://www.djangoproject.com>`_ web framework and the
35+
the `Django <https://www.djangoproject.com>`_ web framework and the
3636
`NumPy <http://numpy.scipy.org>`_ set of math routines.
3737

3838
* **integration with other systems**

docs/intro/learning.rst

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ thepythonguru.com is a tutorial focused on beginner programmers. It covers many
4141
in depth. It also teaches you some advanced constructs of Python like lambda expressions and regular expressions.
4242
And last it finishes off with the tutorial "How to access MySQL db using Python"
4343

44-
`Python for Beginners <http://thepythonguru.com/>`_
44+
`Python for Beginners <https://thepythonguru.com/>`_
4545

4646
Learn Python Interactive Tutorial
4747
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4848

4949
Learnpython.org is an easy non-intimidating way to get introduced to Python.
5050
The website takes the same approach used on the popular
51-
`Try Ruby <http://tryruby.org/>`_ website. It has an interactive Python
51+
`Try Ruby <https://ruby.github.io/TryRuby>`_ website. It has an interactive Python
5252
interpreter built into the site that allows you to go through the lessons
5353
without having to install Python locally.
5454

@@ -65,9 +65,9 @@ resource for learning all aspects of the language.
6565
Learn Python Step by Step
6666
~~~~~~~~~~~~~~~~~~~~~~~~~
6767

68-
Techbeamers.com provides step-by-step tutorials to teach Python. Each tutorial is supplemented with logically added coding snippets and equips with a follow-up quiz on the subject learned. There is a section for `Python interview questions <http://www.techbeamers.com/python-interview-questions-programmers>`_ to help job seekers. You can also read essential `Python tips <http://www.techbeamers.com/essential-python-tips-tricks-programmers>`_ and learn `best coding practices <http://www.techbeamers.com/python-code-optimization-tips-tricks>`_ for writing quality code. Here, you'll get the right platform to learn Python quickly.
68+
Techbeamers.com provides step-by-step tutorials to teach Python. Each tutorial is supplemented with logically added coding snippets and equips with a follow-up quiz on the subject learned. There is a section for `Python interview questions <https://www.techbeamers.com/python-interview-questions-programmers>`_ to help job seekers. You can also read essential `Python tips <https://www.techbeamers.com/essential-python-tips-tricks-programmers>`_ and learn `best coding practices <https://www.techbeamers.com/python-code-optimization-tips-tricks>`_ for writing quality code. Here, you'll get the right platform to learn Python quickly.
6969

70-
`Learn Python Basic to Advanced <http://www.techbeamers.com/python-tutorial-step-by-step>`_
70+
`Learn Python Basic to Advanced <https://www.techbeamers.com/python-tutorial-step-by-step>`_
7171

7272

7373
Online Python Tutor
@@ -108,7 +108,7 @@ Learn Python the Hard Way
108108
This is an excellent beginner programmer's guide to Python. It covers "hello
109109
world" from the console to the web.
110110

111-
`Learn Python the Hard Way <http://learnpythonthehardway.org/book/>`_
111+
`Learn Python the Hard Way <https://learnpythonthehardway.org/book/>`_
112112

113113

114114
Crash into Python
@@ -117,7 +117,7 @@ Crash into Python
117117
Also known as *Python for Programmers with 3 Hours*, this guide gives
118118
experienced developers from other languages a crash course on Python.
119119

120-
`Crash into Python <http://stephensugden.com/crash_into_python/>`_
120+
`Crash into Python <https://stephensugden.com/crash_into_python/>`_
121121

122122

123123
Dive Into Python 3
@@ -161,11 +161,11 @@ For those used to languages and figuring out puzzles on their own, this can be
161161
a fun, attractive option. For those new to Python and programming, having an
162162
additional resource or reference will be helpful.
163163

164-
`Python Koans <http://bitbucket.org/gregmalcolm/python_koans>`_
164+
`Python Koans <https://bitbucket.org/gregmalcolm/python_koans>`_
165165

166166
More information about test driven development can be found at these resources:
167167

168-
`Test Driven Development <http://en.wikipedia.org/wiki/Test-driven_development>`_
168+
`Test Driven Development <https://en.wikipedia.org/wiki/Test-driven_development>`_
169169

170170

171171
A Byte of Python
@@ -178,13 +178,15 @@ no previous programming experience.
178178
`A Byte of Python for Python 3.x <https://python.swaroopch.com/>`_
179179

180180

181-
Learn to Program in Python with Codeacademy
181+
Computer Science Path on Codecademy
182182
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
183183

184-
A Codeacademy course for the absolute Python beginner. This free and interactive course provides and teaches the basics (and beyond) of Python programming while testing the user's knowledge in between progress.
184+
A Codeacademy course for the absolute Python beginner. This free and interactive
185+
course provides and teaches the basics (and beyond) of Python programming while
186+
testing the user's knowledge in between progress.
185187
This course also features a built-in interpreter for receiving instant feedback on your learning.
186188

187-
`Learn to Program in Python with Codeacademy <http://www.codecademy.com/en/tracks/python>`_
189+
`Computer Science Path on Codecademy <https://www.codecademy.com/learn/paths/computer-science>`_
188190

189191

190192
Code the blocks
@@ -220,7 +222,7 @@ pages, it is a very brief overview of some of the most common adapations
220222
programmers need to make to become efficient intermediate level Python
221223
programmers.
222224

223-
`Effective Python <http://www.effectivepython.com/>`_
225+
`Effective Python <https://effectivepython.com/>`_
224226

225227

226228
********
@@ -251,7 +253,7 @@ and eventually an application, including a chapter on using zc.buildout. Later
251253
chapters detail best practices such as writing documentation, test-driven
252254
development, version control, optimization, and profiling.
253255

254-
`Expert Python Programming <http://www.packtpub.com/expert-python-programming/book>`_
256+
`Expert Python Programming <https://www.packtpub.com/application-development/expert-python-programming>`_
255257

256258

257259
A Guide to Python's Magic Methods
@@ -278,15 +280,15 @@ A Primer on Scientific Programming with Python, written by Hans Petter
278280
Langtangen, mainly covers Python's usage in the scientific field. In the book,
279281
examples are chosen from mathematics and the natural sciences.
280282

281-
`A Primer on Scientific Programming with Python <http://www.springer.com/mathematics/computational+science+%26+engineering/book/978-3-642-30292-3>`_
283+
`A Primer on Scientific Programming with Python <https://www.springer.com/us/book/9783642302930#otherversion=9783642302923>`_
282284

283285
Numerical Methods in Engineering with Python
284286
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
285287

286288
Numerical Methods in Engineering with Python, written by Jaan Kiusalaas,
287289
puts the emphasis on numerical methods and how to implement them in Python.
288290

289-
`Numerical Methods in Engineering with Python <http://www.cambridge.org/us/academic/subjects/engineering/engineering-mathematics-and-programming/numerical-methods-engineering-python-2nd-edition>`_
291+
`Numerical Methods in Engineering with Python <https://www.cambridge.org/us/academic/subjects/engineering/engineering-mathematics-and-programming/numerical-methods-engineering-python-2nd-edition>`_
290292

291293

292294
********************
@@ -405,6 +407,6 @@ some commonly used piece of code, followed by an explanation of why the idiom
405407
is important. It also contains two code samples for each idiom: the "Harmful"
406408
way to write it and the "Idiomatic" way.
407409

408-
`For Python 2.7.3+ <http://www.amazon.com/Writing-Idiomatic-Python-2-7-3-Knupp/dp/1482372177/>`_
410+
`For Python 2.7.3+ <https://www.amazon.com/Writing-Idiomatic-Python-Jeff-Knupp-ebook/dp/B00B5KG0F8/>`_
409411

410-
`For Python 3.3+ <http://www.amazon.com/Writing-Idiomatic-Python-Jeff-Knupp-ebook/dp/B00B5VXMRG/>`_
412+
`For Python 3.3+ <https://www.amazon.com/Writing-Idiomatic-Python-Jeff-Knupp-ebook/dp/B00B5VXMRG/>`_

docs/intro/news.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Planet Python
3232

3333
This is an aggregate of Python news from a growing number of developers.
3434

35-
`Planet Python <http://planet.python.org>`_
35+
`Planet Python <https://planetpython.org>`_
3636

3737

3838
*********
@@ -42,7 +42,7 @@ This is an aggregate of Python news from a growing number of developers.
4242
/r/python is the Reddit Python community where users contribute and vote on
4343
Python-related news.
4444

45-
`/r/python <http://reddit.com/r/python>`_
45+
`/r/python <https://reddit.com/r/python>`_
4646

4747

4848
*******************
@@ -70,7 +70,7 @@ Python Weekly
7070
Python Weekly is a free weekly newsletter featuring curated news, articles,
7171
new releases, jobs, etc. related to Python.
7272

73-
`Python Weekly <http://www.pythonweekly.com/>`_
73+
`Python Weekly <https://www.pythonweekly.com/>`_
7474

7575

7676
***********
@@ -80,7 +80,7 @@ Python News
8080
Python News is the news section in the official Python web site
8181
(www.python.org). It briefly highlights the news from the Python community.
8282

83-
`Python News <http://www.python.org/news/>`_
83+
`Python News <http://www.python.org/blogs/>`_
8484

8585

8686
********************

docs/notes/contribute.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ If you'd like to contribute, there's plenty to do. Here's a short todo_ list.
3030
.. include:: ../../TODO.rst
3131

3232

33-
.. _GitHub: http://github.com/kennethreitz/python-guide/
33+
.. _GitHub: https://github.com/kennethreitz/python-guide/
3434
.. _todo: https://github.com/kennethreitz/python-guide/blob/master/TODO.rst

docs/scenarios/cli.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ POSIX-style usage instructions.
4646
Plac
4747
****
4848

49-
`Plac <https://pypi.python.org/pypi/plac>`_ is a simple wrapper
49+
`Plac <https://pypi.org/project/plac>`_ is a simple wrapper
5050
over the Python standard library `argparse <http://docs.python.org/2/library/argparse.html>`_,
5151
which hides most of its complexity by using a declarative interface: the
5252
argument parser is inferred rather than written down imperatively. This

docs/scenarios/client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pooling are 100% automatic, powered by urllib3, which is embedded within
2929
Requests.
3030

3131
- `Documentation <http://docs.python-requests.org/en/latest/index.html>`_
32-
- `PyPi <http://pypi.python.org/pypi/requests>`_
32+
- `PyPi <http://pypi.org/project/requests>`_
3333
- `GitHub <https://github.com/kennethreitz/requests>`_
3434

3535

0 commit comments

Comments
 (0)