diff options
author | Raymond Hettinger <python@rcn.com> | 2010-12-14 21:12:03 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2010-12-14 21:12:03 (GMT) |
commit | ffad35ef2738a78da77ff8d280f700487c380260 (patch) | |
tree | a89ac8e62e56efffa0d5d2ab3ae24fb8a5995b34 /Doc/whatsnew | |
parent | 9a6b400a59229914e566dfb2e3fe75f3e69cd1ca (diff) | |
download | cpython-ffad35ef2738a78da77ff8d280f700487c380260.zip cpython-ffad35ef2738a78da77ff8d280f700487c380260.tar.gz cpython-ffad35ef2738a78da77ff8d280f700487c380260.tar.bz2 |
Nits
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.2.rst | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 837a591..d79ed00 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -47,9 +47,9 @@ This saves the maintainer the effort of going through the SVN log when researching a change. -This article explains the new features in Python 3.2, compared to 3.1. -It focuses on a few highlights and gives a few examples. For full details, -see the :file:`Misc/NEWS` file. +This article explains the new features in Python 3.2 as compared to 3.1. It +focuses on a few highlights and gives a few examples. For full details, see the +:source:`Misc/NEWS <Misc/NEWS>` file. PEP 384: Defining a Stable ABI @@ -396,7 +396,7 @@ format. :class:`~email.message.Message` object and can optionally obtain the *from_addr* and *to_addrs* addresses directly from the object. -.. XXX Update before 3.2rc1 to reflect all of the last work and add examples. +.. XXX Update before 3.2rc1 to reflect all of the latest work and add examples. (Proposed and implemented by R. David Murray, :issue:`4661` and :issue:`10321`.) @@ -619,7 +619,7 @@ New, Improved, and Deprecated Modules <http://en.wikipedia.org/wiki/Saturation_arithmetic>`_ and the new :meth:`~collections.Counter.subtract` method for regular subtraction. The former is suitable for `multisets <http://en.wikipedia.org/wiki/Multiset>`_ - which only have positive counts, and the latter is more suitable for counters + which only have positive counts, and the latter is more suitable for use cases that allow negative counts: >>> tally = Counter(dogs=5, cat=3) @@ -813,8 +813,9 @@ New, Improved, and Deprecated Modules ... legacy_function('XYZ') Another new method, :meth:`~unittest.TestCase.assertCountEqual` is used to - compare two iterables to determine if their element counts are equal (are the - same elements present the same number of times:: + compare two iterables to determine if their element counts are equal (whether + the same elements are present with the same number of occurrences regardless + of order):: def test_anagram(self): self.assertCountEqual('algorithm', 'logarithm') @@ -906,7 +907,7 @@ New, Improved, and Deprecated Modules * The new :mod:`sysconfig` module makes it straight-forward to discover installation paths and configuration variables which vary across platforms and - installs. + installations. The module offers access simple access functions for platform and version information: @@ -1031,7 +1032,7 @@ A number of small performance enhancements have been added: and the Unladen Swallow team in :issue:`9410` and :issue:`3873`.) * The `Timsort algorithm <http://en.wikipedia.org/wiki/Timsort>`_ used in - :meth:`list.sort` and :func:`sorted` now runs faster and used less memory + :meth:`list.sort` and :func:`sorted` now runs faster and uses less memory when called with a :term:`key function`. Previously, every element of a list was wrapped with a temporary object that remembered the key value associated with each element. Now, an array of keys and values are |