diff options
| author | Nick Coghlan <ncoghlan@gmail.com> | 2016-09-10 20:00:02 +1000 | 
|---|---|---|
| committer | Nick Coghlan <ncoghlan@gmail.com> | 2016-09-10 20:00:02 +1000 | 
| commit | 457fc9a69e7918e3c10319604903915c2f2ecd9a (patch) | |
| tree | a5c07e94a0442b8e7ac303ebf3643295a1c16888 /Modules/_functoolsmodule.c | |
| parent | eddc4b7272c310fc5008c8c826ed70fa936cd661 (diff) | |
| download | cpython-git-457fc9a69e7918e3c10319604903915c2f2ecd9a.tar.gz | |
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/_functoolsmodule.c')
| -rw-r--r-- | Modules/_functoolsmodule.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_functoolsmodule.c b/Modules/_functoolsmodule.c index 848a03cb07..fa5fad3e75 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("");  | 
