[issue4113] Add custom __repr__ to functools.partial

Daniel Urban report at bugs.python.org
Fri Nov 19 22:20:20 CET 2010


Daniel Urban <urban.dani+py at gmail.com> added the comment:

Well, of course it can be done with PyUnicode_Concat (obviously, since PyUnicode_AppendAndDel uses that). I used PyUnicode_AppendAndDel because that function does exactly what I needed.

I don't see why PyUnicode_AppendAndDel should be deprecated. Anyway, here is a new patch which uses PyUnicode_Concat.

----------
Added file: http://bugs.python.org/file19643/issue4113b.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4113>
_______________________________________


More information about the Python-bugs-list mailing list