Commit f5ff5010 authored by Tim Graham's avatar Tim Graham
Browse files

Fixed #26483 -- Updated docs.python.org links to use Intersphinx.

parent 413f3bb5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -243,8 +243,8 @@ def stringformat(value, arg):
    This specifier uses Python string formating syntax, with the exception that
    the leading "%" is dropped.

    See http://docs.python.org/lib/typesseq-strings.html for documentation
    of Python string formatting
    See https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting
    for documentation of Python string formatting.
    """
    try:
        return ("%" + six.text_type(arg)) % value
+1 −1
Original line number Diff line number Diff line
@@ -264,4 +264,4 @@ drastically increase CPU usage by causing worst-case performance when
creating ``dict`` instances. See `oCERT advisory #2011-003
<http://www.ocert.org/advisories/ocert-2011-003.html>`_ for more information.

.. _-r: https://docs.python.org/using/cmdline.html#cmdoption-R
.. _-r: https://docs.python.org/2/using/cmdline.html#cmdoption-R
+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ mention:

    For more information, see the Python documentation of the :mod:`csv` module.

    .. _`csv module's examples section`: https://docs.python.org/library/csv.html#examples
    .. _`csv module's examples section`: https://docs.python.org/2/library/csv.html#examples
    .. _`python-unicodecsv module`: https://github.com/jdunck/python-unicodecsv

.. _streaming-csv-files:
+1 −2
Original line number Diff line number Diff line
@@ -373,10 +373,9 @@ that passing a ``prefix`` parameter when creating an instance still works too.
    * Dive Into Python (a free online book for beginning Python developers)
      includes a great `introduction to Unit Testing`__.
    * After reading those, if you want something a little meatier to sink
      your teeth into, there's always the `Python unittest documentation`__.
      your teeth into, there's always the Python :mod:`unittest` documentation.

__ http://www.diveintopython.net/unit_testing/index.html
__ https://docs.python.org/library/unittest.html

Running your new test
---------------------
+7 −9
Original line number Diff line number Diff line
@@ -201,15 +201,13 @@ example above:
        url(r'^articles/([0-9]{4})/([0-9]{2})/([0-9]+)/$', views.article_detail),
    ]

The code above maps URLs, as simple `regular expressions`_, to the location of
Python callback functions ("views"). The regular expressions use parenthesis to
"capture" values from the URLs. When a user requests a page, Django runs
through each pattern, in order, and stops at the first one that matches the
requested URL. (If none of them matches, Django calls a special-case 404 view.)
This is blazingly fast, because the regular expressions are compiled at load
time.

.. _regular expressions: https://docs.python.org/howto/regex.html
The code above maps URLs, as simple :ref:`regular expressions <regex-howto>`,
to the location of Python callback functions ("views"). The regular expressions
use parenthesis to "capture" values from the URLs. When a user requests a page,
Django runs through each pattern, in order, and stops at the first one that
matches the requested URL. (If none of them matches, Django calls a
special-case 404 view.) This is blazingly fast, because the regular expressions
are compiled at load time.

Once one of the regexes matches, Django imports and calls the given view, which
is a simple Python function. Each view gets passed a request object --
Loading