summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-09-22 10:08:16 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-09-22 10:08:16 (GMT)
commit9b93c6b5dfe0b6bab4392e88409bf4f72c2570d5 (patch)
tree721db74495c08e381e3ef1a2e2d4bc11c0553788 /Doc
parent5e202086a5261f727b16ec8a5d5bf73046df1b12 (diff)
downloadcpython-9b93c6b5dfe0b6bab4392e88409bf4f72c2570d5.zip
cpython-9b93c6b5dfe0b6bab4392e88409bf4f72c2570d5.tar.gz
cpython-9b93c6b5dfe0b6bab4392e88409bf4f72c2570d5.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.rst6
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
--------------------