diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-09-22 10:08:42 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-09-22 10:08:42 (GMT) |
commit | dd7cb10b89f2d3cfb808c010a11481a1db08a8bb (patch) | |
tree | 3b86048a35dfb48f9def52a13a2666f1b2cc37c6 /Doc | |
parent | 54385b206d5a91e17eaf7d54cadb049847fa1c8a (diff) | |
parent | 9b93c6b5dfe0b6bab4392e88409bf4f72c2570d5 (diff) | |
download | cpython-dd7cb10b89f2d3cfb808c010a11481a1db08a8bb.zip cpython-dd7cb10b89f2d3cfb808c010a11481a1db08a8bb.tar.gz cpython-dd7cb10b89f2d3cfb808c010a11481a1db08a8bb.tar.bz2 |
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.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index 8c85b14..56cb00c 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -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 -------------------- |