[issue7830] Flatten nested functools.partial

Alexander Belopolsky report at bugs.python.org
Sun Jul 25 00:12:49 CEST 2010


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

> FWIW, I agree with Antoine. You cannot know in advance whether a
> partial-subclass has semantics that need to be preserved when
> flattening.


Raymond,

I have actually conceded this point to Antoine.  See msg108980 above.  Not only the latest patch preserves partial-subclasses, it also foregoes the optimization if there is anything in __dict__ of the inner partial.

It looks like we have a consensus on the features, the remaining question is whether this is enough of an optimization to justify adding extra code.

----------

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


More information about the Python-bugs-list mailing list