mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #25137: Add a note to whatsnew/3.5.rst for nested functools.partial calls
Also, properly skip the test_nested_optimization test for partial subclasses and add a test for the suggested usage.
This commit is contained in:
parent
5e202086a5
commit
9b93c6b5df
2 changed files with 21 additions and 3 deletions
|
|
@ -2441,6 +2441,12 @@ Changes in the Python API
|
|||
module and the :func:`help` function.
|
||||
(Contributed by Serhiy Storchaka in :issue:`15582`.)
|
||||
|
||||
* Nested :func:`functools.partial` calls are now flattened. If you were
|
||||
relying on the previous behavior, you can now either add an attribute to a
|
||||
:func:`functools.partial` object or you can create a subclass of
|
||||
:func:`functools.partial`.
|
||||
(Contributed by Alexander Belopolsky in :issue:`7830`.)
|
||||
|
||||
Changes in the C API
|
||||
--------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue