summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2016-09-10 10:00:02 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2016-09-10 10:00:02 (GMT)
commit457fc9a69e7918e3c10319604903915c2f2ecd9a (patch)
treea5c07e94a0442b8e7ac303ebf3643295a1c16888 /Modules
parenteddc4b7272c310fc5008c8c826ed70fa936cd661 (diff)
downloadcpython-457fc9a69e7918e3c10319604903915c2f2ecd9a.zip
cpython-457fc9a69e7918e3c10319604903915c2f2ecd9a.tar.gz
cpython-457fc9a69e7918e3c10319604903915c2f2ecd9a.tar.bz2
Issue #27137: align Python & C implementations of functools.partial
The pure Python fallback implementation of functools.partial now matches the behaviour of its accelerated C counterpart for subclassing, pickling and text representation purposes. Patch by Emanuel Barry and Serhiy Storchaka.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_functoolsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c
index 848a03c..fa5fad3 100644
--- a/Modules/_functoolsmodule.c
+++ b/Modules/_functoolsmodule.c
@@ -229,7 +229,7 @@ partial_repr(partialobject *pto)
if (status != 0) {
if (status < 0)
return NULL;
- return PyUnicode_FromFormat("%s(...)", Py_TYPE(pto)->tp_name);
+ return PyUnicode_FromString("...");
}
arglist = PyUnicode_FromString("");