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
ab4c51c2
Commit
ab4c51c2
authored
Dec 03, 2008
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor edits.
parent
6e72b9e6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Doc/whatsnew/3.0.rst
Doc/whatsnew/3.0.rst
+4
-3
No files found.
Doc/whatsnew/3.0.rst
View file @
ab4c51c2
...
@@ -147,7 +147,7 @@ Some well-known APIs no longer return lists:
...
@@ -147,7 +147,7 @@ Some well-known APIs no longer return lists:
* :class:`dict` methods :meth:`dict.keys`, :meth:`dict.items` and
* :class:`dict` methods :meth:`dict.keys`, :meth:`dict.items` and
:meth:`dict.values` return "views" instead of lists. For example,
:meth:`dict.values` return "views" instead of lists. For example,
this no longer works: ``k = d.keys(); k.sort()``. Use ``k =
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).
as efficient).
* Also, the :meth:`dict.iterkeys`, :meth:`dict.iteritems` and
* Also, the :meth:`dict.iterkeys`, :meth:`dict.iteritems` and
...
@@ -386,7 +386,8 @@ New Syntax
...
@@ -386,7 +386,8 @@ New Syntax
* New binary literals, e.g. ``0b1010`` (already in 2.6).
* 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
Changed Syntax
--------------
--------------
...
@@ -524,7 +525,7 @@ consulted for longer descriptions.
...
@@ -524,7 +525,7 @@ consulted for longer descriptions.
:mod:`collections` module plays a somewhat more prominent role in
:mod:`collections` module plays a somewhat more prominent role in
the language now, and builtin collection types like :class:`dict`
the language now, and builtin collection types like :class:`dict`
and :class:`list` conform to the :class:`collections.MutableMapping`
and :class:`list` conform to the :class:`collections.MutableMapping`
and :class:`collections.MutableSequence` ABC, respectively.
and :class:`collections.MutableSequence` ABC
s
, respectively.
* :ref:`pep-3127`. As mentioned above, the new octal literal
* :ref:`pep-3127`. As mentioned above, the new octal literal
notation is the only one supported, and binary literals have been
notation is the only one supported, and binary literals have been
...
...
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