summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-12-03 15:04:01 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-12-03 15:04:01 (GMT)
commitab4c51c2b333cc829b3186080e98e13dba4a48b3 (patch)
tree82578525d766d0a324fdc7a808aa7d3508b3dcfc /Doc/whatsnew
parent6e72b9e619e94db9ca8d7904fc5f1b4988ea7931 (diff)
downloadcpython-ab4c51c2b333cc829b3186080e98e13dba4a48b3.zip
cpython-ab4c51c2b333cc829b3186080e98e13dba4a48b3.tar.gz
cpython-ab4c51c2b333cc829b3186080e98e13dba4a48b3.tar.bz2
Minor edits.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.0.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.0.rst b/Doc/whatsnew/3.0.rst
index 511f315..a2afb32 100644
--- a/Doc/whatsnew/3.0.rst
+++ b/Doc/whatsnew/3.0.rst
@@ -147,7 +147,7 @@ Some well-known APIs no longer return lists:
* :class:`dict` methods :meth:`dict.keys`, :meth:`dict.items` and
:meth:`dict.values` return "views" instead of lists. For example,
this no longer works: ``k = d.keys(); k.sort()``. Use ``k =
- sorted(d)`` instead (this works in Python 2.5 too, and is just
+ sorted(d)`` instead (this works in Python 2.5 too and is just
as efficient).
* Also, the :meth:`dict.iterkeys`, :meth:`dict.iteritems` and
@@ -386,7 +386,8 @@ New Syntax
* New binary literals, e.g. ``0b1010`` (already in 2.6).
-* Bytes literals are introduced with a leading ``b`` or ``B``.
+* Bytes literals are introduced with a leading ``b`` or ``B``, and
+ there is a new corresponding builtin function, :func:`bin`.
Changed Syntax
--------------
@@ -524,7 +525,7 @@ consulted for longer descriptions.
:mod:`collections` module plays a somewhat more prominent role in
the language now, and builtin collection types like :class:`dict`
and :class:`list` conform to the :class:`collections.MutableMapping`
- and :class:`collections.MutableSequence` ABC, respectively.
+ and :class:`collections.MutableSequence` ABCs, respectively.
* :ref:`pep-3127`. As mentioned above, the new octal literal
notation is the only one supported, and binary literals have been