Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d621dd7e
Commit
d621dd7e
authored
Apr 14, 2009
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix-up links.
parent
7f5d746c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Doc/whatsnew/3.1.rst
Doc/whatsnew/3.1.rst
+6
-6
No files found.
Doc/whatsnew/3.1.rst
View file @
d621dd7e
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment