Commit d621dd7e authored by Raymond Hettinger's avatar Raymond Hettinger

Fix-up links.

parent 7f5d746c
...@@ -57,8 +57,8 @@ PEP 372: Ordered Dictionaries ...@@ -57,8 +57,8 @@ PEP 372: Ordered Dictionaries
Regular Python dictionaries iterate over key/value pairs in arbitrary order. Regular Python dictionaries iterate over key/value pairs in arbitrary order.
Over the years, a number of authors have written alternative implementations Over the years, a number of authors have written alternative implementations
that remember the order that the keys were originally inserted. Based on that remember the order that the keys were originally inserted. Based on
the experiences from those implementations, the :mod:`collections` module the experiences from those implementations, a new
now has an :class:`OrderedDict` class. :class:`collections.OrderedDict` class has been introduced.
The OrderedDict API is substantially the same as regular dictionaries The OrderedDict API is substantially the same as regular dictionaries
but will iterate over keys and values in a guaranteed order depending on but will iterate over keys and values in a guaranteed order depending on
...@@ -69,7 +69,7 @@ reinserting it will move it to the end. ...@@ -69,7 +69,7 @@ reinserting it will move it to the end.
The standard library now supports use of ordered dictionaries in several The standard library now supports use of ordered dictionaries in several
modules. The :mod:`configparser` module uses them by default. This lets modules. The :mod:`configparser` module uses them by default. This lets
configuration files be read, modified, and then written back in their original configuration files be read, modified, and then written back in their original
order. The :mod:`collections` module's :meth:`namedtuple._asdict` method now order. The *_asdict()* method for :func:`collections.namedtuple` now
returns an ordered dictionary with the values appearing in the same order as returns an ordered dictionary with the values appearing in the same order as
the underlying tuple indicies. The :mod:`json` module is being built-out with the underlying tuple indicies. The :mod:`json` module is being built-out with
an *object_pairs_hook* to allow OrderedDicts to be built by the decoder. an *object_pairs_hook* to allow OrderedDicts to be built by the decoder.
...@@ -233,15 +233,15 @@ New, Improved, and Deprecated Modules ...@@ -233,15 +233,15 @@ New, Improved, and Deprecated Modules
(Contributed by Gregory Smith.) (Contributed by Gregory Smith.)
* The :mod:`logging` module now implements a simple :class:`NullHandler` * The :mod:`logging` module now implements a simple :class:`logging.NullHandler`
class for applications that are not using logging but are calling class for applications that are not using logging but are calling
library code that does. Setting-up a null handler will suppress library code that does. Setting-up a null handler will suppress
spurious warnings like "No handlers could be found for logger X.Y.Z":: spurious warnings such as "No handlers could be found for logger foo"::
>>> h = logging.NullHandler() >>> h = logging.NullHandler()
>>> logging.getLogger("foo").addHandler(h) >>> logging.getLogger("foo").addHandler(h)
(Contributed by Vinay Sajip; issue:`4384`). (Contributed by Vinay Sajip; :issue:`4384`).
* The :mod:`runpy` module which supports the ``-m`` command line switch * The :mod:`runpy` module which supports the ``-m`` command line switch
now supports the execution of packages by looking for and executing now supports the execution of packages by looking for and executing
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment