summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-09-22 10:08:42 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-09-22 10:08:42 (GMT)
commitdd7cb10b89f2d3cfb808c010a11481a1db08a8bb (patch)
tree3b86048a35dfb48f9def52a13a2666f1b2cc37c6 /Doc
parent54385b206d5a91e17eaf7d54cadb049847fa1c8a (diff)
parent9b93c6b5dfe0b6bab4392e88409bf4f72c2570d5 (diff)
downloadcpython-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.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
--------------------