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
860a6468
Commit
860a6468
authored
Feb 22, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
whatsnew: frozen package __path__; and min/max versionadded.
parent
a01e92d1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
Doc/library/functions.rst
Doc/library/functions.rst
+6
-0
Doc/whatsnew/3.4.rst
Doc/whatsnew/3.4.rst
+10
-3
No files found.
Doc/library/functions.rst
View file @
860a6468
...
@@ -781,6 +781,9 @@ are always available. They are listed here in alphabetical order.
...
@@ -781,6 +781,9 @@ are always available. They are listed here in alphabetical order.
such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and
such as ``sorted(iterable, key=keyfunc, reverse=True)[0]`` and
``heapq.nlargest(1, iterable, key=keyfunc)``.
``heapq.nlargest(1, iterable, key=keyfunc)``.
.. versionadded:: 3.4
The *default* keyword-only argument.
.. _func-memoryview:
.. _func-memoryview:
.. function:: memoryview(obj)
.. function:: memoryview(obj)
...
@@ -812,6 +815,9 @@ are always available. They are listed here in alphabetical order.
...
@@ -812,6 +815,9 @@ are always available. They are listed here in alphabetical order.
such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1,
such as ``sorted(iterable, key=keyfunc)[0]`` and ``heapq.nsmallest(1,
iterable, key=keyfunc)``.
iterable, key=keyfunc)``.
.. versionadded:: 3.4
The *default* keyword-only argument.
.. function:: next(iterator[, default])
.. function:: next(iterator[, default])
Retrieve the next item from the *iterator* by calling its
Retrieve the next item from the *iterator* by calling its
...
...
Doc/whatsnew/3.4.rst
View file @
860a6468
...
@@ -346,9 +346,10 @@ Some smaller changes made to the core Python language are:
...
@@ -346,9 +346,10 @@ Some smaller changes made to the core Python language are:
* Unicode database updated to UCD version 6.3.
* Unicode database updated to UCD version 6.3.
* :func:`min` and :func:`max` now accept a *default* argument that can be used
* :func:`min` and :func:`max` now accept a *default* keyword-only argument that
to specify the value they return if the iterable they are evaluating has no
can be used to specify the value they return if the iterable they are
elements. Contributed by Julian Berman in :issue:`18111`.
evaluating has no elements. (Contributed by Julian Berman in
:issue:`18111`.)
* Module objects are now :mod:`weakref`'able.
* Module objects are now :mod:`weakref`'able.
...
@@ -1805,6 +1806,12 @@ Changes in the Python API
...
@@ -1805,6 +1806,12 @@ Changes in the Python API
similarly to ``__kwdefaults__``. (Contributed by Yury Selivanov in
similarly to ``__kwdefaults__``. (Contributed by Yury Selivanov in
:issue:`20625`).
:issue:`20625`).
* Frozen packages used to have their ``__path__`` set to the package name,
but this could cause the import system to do the wrong thing on submodule
imports if there was also a directory with the same name as the frozen
package. The ``__path__`` for frozen packages is now set to ``[]``
(:issue:`18065`).
Changes in the C API
Changes in the C API
--------------------
--------------------
...
...
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