[issue7830] Flatten nested functools.partial

Alexander Belopolsky report at bugs.python.org
Wed Jun 30 15:43:36 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

I am attaching a patch, issue7830.diff, that takes an ultra-concervative approach: partials are only flattened if both outer and inner are of exact functools.partial type and the inner partial does not have __dict__.

----------
assignee:  -> belopolsky
keywords: +needs review -patch
nosy: +belopolsky -Alexander.Belopolsky
stage:  -> patch review
versions:  -Python 2.7
Added file: http://bugs.python.org/file17813/issue7830.diff

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


More information about the Python-bugs-list mailing list