@@ -501,8 +501,8 @@ This produces the following output::
501501 ZeroDivisionError: integer division or modulo by zero
502502
503503Slightly more advanced programs will use a logger other than the root logger.
504- The :func: ` getLogger(name) ` function is used to get a particular log, creating
505- it if it doesn't exist yet. :func: ` getLogger(None) ` returns the root logger. ::
504+ The `` getLogger(name) ` ` function is used to get a particular log, creating
505+ it if it doesn't exist yet. `` getLogger(None) ` ` returns the root logger. ::
506506
507507 log = logging.getLogger('server')
508508 ...
@@ -721,10 +721,10 @@ module:
721721 objects to it. Additional built-in and frozen modules can be imported by an
722722 object added to this list.
723723
724- Importer objects must have a single method, :meth: `find_module(fullname,
725- path=None) `. *fullname * will be a module or package name, e.g. ``string `` or
724+ Importer objects must have a single method, ` `find_module(fullname,
725+ path=None) `` . *fullname * will be a module or package name, e.g. ``string `` or
726726``distutils.core ``. :meth: `find_module ` must return a loader object that has a
727- single method, :meth: ` load_module(fullname) `, that creates and returns the
727+ single method, `` load_module(fullname) ` `, that creates and returns the
728728corresponding module object.
729729
730730Pseudo-code for Python's new import logic, therefore, looks something like this
@@ -932,7 +932,7 @@ Or use slice objects directly in subscripts::
932932 [0, 2, 4]
933933
934934To simplify implementing sequences that support extended slicing, slice objects
935- now have a method :meth: ` indices(length) ` which, given the length of a sequence,
935+ now have a method `` indices(length) ` ` which, given the length of a sequence,
936936returns a ``(start, stop, step) `` tuple that can be passed directly to
937937:func: `range `. :meth: `indices ` handles omitted and out-of-bounds indices in a
938938manner consistent with regular slices (and this innocuous phrase hides a welter
@@ -981,7 +981,7 @@ Here are all of the changes that Python 2.3 makes to the core Python language.
981981* Built-in types now support the extended slicing syntax, as described in
982982 section :ref: `section-slices ` of this document.
983983
984- * A new built-in function, :func: ` sum(iterable, start=0) `, adds up the numeric
984+ * A new built-in function, `` sum(iterable, start=0) ` `, adds up the numeric
985985 items in the iterable object and returns their sum. :func: `sum ` only accepts
986986 numbers, meaning that you can't use it to concatenate a bunch of strings.
987987 (Contributed by Alex Martelli.)
@@ -995,7 +995,7 @@ Here are all of the changes that Python 2.3 makes to the core Python language.
995995 its index, now takes optional *start * and *stop * arguments to limit the search
996996 to only part of the list.
997997
998- * Dictionaries have a new method, :meth: ` pop(key[, *default*]) `, that returns
998+ * Dictionaries have a new method, `` pop(key[, *default*]) ` `, that returns
999999 the value corresponding to *key * and removes that key/value pair from the
10001000 dictionary. If the requested key isn't present in the dictionary, *default * is
10011001 returned if it's specified and :exc: `KeyError ` raised if it isn't. ::
@@ -1017,7 +1017,7 @@ Here are all of the changes that Python 2.3 makes to the core Python language.
10171017 {}
10181018 >>>
10191019
1020- There's also a new class method, :meth: ` dict.fromkeys(iterable, value) `, that
1020+ There's also a new class method, `` dict.fromkeys(iterable, value) ` `, that
10211021 creates a dictionary with keys taken from the supplied iterator *iterable * and
10221022 all values set to *value *, defaulting to ``None ``.
10231023
@@ -1090,7 +1090,7 @@ Here are all of the changes that Python 2.3 makes to the core Python language.
10901090 100 bytecodes, speeding up single-threaded applications by reducing the
10911091 switching overhead. Some multithreaded applications may suffer slower response
10921092 time, but that's easily fixed by setting the limit back to a lower number using
1093- :func: ` sys.setcheckinterval(N) `. The limit can be retrieved with the new
1093+ `` sys.setcheckinterval(N) ` `. The limit can be retrieved with the new
10941094 :func: `sys.getcheckinterval ` function.
10951095
10961096* One minor but far-reaching change is that the names of extension types defined
@@ -1269,10 +1269,10 @@ complete list of changes, or look through the CVS logs for all the details.
12691269
12701270* Previously the :mod: `doctest ` module would only search the docstrings of
12711271 public methods and functions for test cases, but it now also examines private
1272- ones as well. The :func: `DocTestSuite( ` function creates a
1272+ ones as well. The :func: `DocTestSuite ` function creates a
12731273 :class: `unittest.TestSuite ` object from a set of :mod: `doctest ` tests.
12741274
1275- * The new :func: ` gc.get_referents(object) ` function returns a list of all the
1275+ * The new `` gc.get_referents(object) ` ` function returns a list of all the
12761276 objects referenced by *object *.
12771277
12781278* The :mod: `getopt ` module gained a new function, :func: `gnu_getopt `, that
@@ -1344,8 +1344,8 @@ complete list of changes, or look through the CVS logs for all the details.
13441344 documentation for details.
13451345 (Contributed by Raymond Hettinger.)
13461346
1347- * Two new functions in the :mod: `math ` module, :func: ` degrees(rads) ` and
1348- :func: ` radians(degs) `, convert between radians and degrees. Other functions in
1347+ * Two new functions in the :mod: `math ` module, `` degrees(rads) ` ` and
1348+ `` radians(degs) ` `, convert between radians and degrees. Other functions in
13491349 the :mod: `math ` module such as :func: `math.sin ` and :func: `math.cos ` have always
13501350 required input values measured in radians. Also, an optional *base * argument
13511351 was added to :func: `math.log ` to make it easier to compute logarithms for bases
@@ -1402,7 +1402,7 @@ complete list of changes, or look through the CVS logs for all the details.
14021402 and therefore faster performance. Setting the parser object's
14031403 :attr: `buffer_text ` attribute to :const: `True ` will enable buffering.
14041404
1405- * The :func: ` sample(population, k) ` function was added to the :mod: `random `
1405+ * The `` sample(population, k) ` ` function was added to the :mod: `random `
14061406 module. *population * is a sequence or :class: `xrange ` object containing the
14071407 elements of a population, and :func: `sample ` chooses *k * elements from the
14081408 population without replacing chosen elements. *k * can be any value up to
@@ -1448,15 +1448,15 @@ complete list of changes, or look through the CVS logs for all the details.
14481448 encryption is not believed to be secure. If you need encryption, use one of the
14491449 several AES Python modules that are available separately.
14501450
1451- * The :mod: `shutil ` module gained a :func: ` move(src, dest) ` function that
1451+ * The :mod: `shutil ` module gained a `` move(src, dest) ` ` function that
14521452 recursively moves a file or directory to a new location.
14531453
14541454* Support for more advanced POSIX signal handling was added to the :mod: `signal `
14551455 but then removed again as it proved impossible to make it work reliably across
14561456 platforms.
14571457
14581458* The :mod: `socket ` module now supports timeouts. You can call the
1459- :meth: ` settimeout(t) ` method on a socket object to set a timeout of *t * seconds.
1459+ `` settimeout(t) ` ` method on a socket object to set a timeout of *t * seconds.
14601460 Subsequent socket operations that take longer than *t * seconds to complete will
14611461 abort and raise a :exc: `socket.timeout ` exception.
14621462
@@ -1477,9 +1477,9 @@ complete list of changes, or look through the CVS logs for all the details.
14771477 :program: `tar `\ -format archive files. (Contributed by Lars Gustäbel.)
14781478
14791479* The new :mod: `textwrap ` module contains functions for wrapping strings
1480- containing paragraphs of text. The :func: ` wrap(text, width) ` function takes a
1480+ containing paragraphs of text. The `` wrap(text, width) ` ` function takes a
14811481 string and returns a list containing the text split into lines of no more than
1482- the chosen width. The :func: ` fill(text, width) ` function returns a single
1482+ the chosen width. The `` fill(text, width) ` ` function returns a single
14831483 string, reformatted to fit into lines no longer than the chosen width. (As you
14841484 can guess, :func: `fill ` is built on top of :func: `wrap `. For example::
14851485
@@ -1900,7 +1900,7 @@ Changes to Python's build process and to the C API include:
19001900 short int `, ``I `` for :c:type: `unsigned int `, and ``K `` for :c:type: `unsigned
19011901 long long `.
19021902
1903- * A new function, :c:func: ` PyObject_DelItemString(mapping, char \ * key) ` was added
1903+ * A new function, `` PyObject_DelItemString(mapping, char *key) ` ` was added
19041904 as shorthand for ``PyObject_DelItem(mapping, PyString_New(key)) ``.
19051905
19061906* File objects now manage their internal string buffer differently, increasing
0 commit comments