Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab4c51c

Browse files
committed
Minor edits.
1 parent 6e72b9e commit ab4c51c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/whatsnew/3.0.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Some well-known APIs no longer return lists:
147147
* :class:`dict` methods :meth:`dict.keys`, :meth:`dict.items` and
148148
:meth:`dict.values` return "views" instead of lists. For example,
149149
this no longer works: ``k = d.keys(); k.sort()``. Use ``k =
150-
sorted(d)`` instead (this works in Python 2.5 too, and is just
150+
sorted(d)`` instead (this works in Python 2.5 too and is just
151151
as efficient).
152152

153153
* Also, the :meth:`dict.iterkeys`, :meth:`dict.iteritems` and
@@ -386,7 +386,8 @@ New Syntax
386386

387387
* New binary literals, e.g. ``0b1010`` (already in 2.6).
388388

389-
* Bytes literals are introduced with a leading ``b`` or ``B``.
389+
* Bytes literals are introduced with a leading ``b`` or ``B``, and
390+
there is a new corresponding builtin function, :func:`bin`.
390391

391392
Changed Syntax
392393
--------------
@@ -524,7 +525,7 @@ consulted for longer descriptions.
524525
:mod:`collections` module plays a somewhat more prominent role in
525526
the language now, and builtin collection types like :class:`dict`
526527
and :class:`list` conform to the :class:`collections.MutableMapping`
527-
and :class:`collections.MutableSequence` ABC, respectively.
528+
and :class:`collections.MutableSequence` ABCs, respectively.
528529

529530
* :ref:`pep-3127`. As mentioned above, the new octal literal
530531
notation is the only one supported, and binary literals have been

0 commit comments

Comments
 (0)