[issue3445] Ignore missing attributes in functools.update_wrapper

Evan Klitzke report at bugs.python.org
Sat Jan 16 05:11:32 CET 2010


Evan Klitzke <evan at eklitzke.org> added the comment:

New patch included, with a test case.

I had wanted to check the classmethod __module__ thing directly, but that proved to be elusive, since the classmethod gets the __module__ attribute if the module is '__main__', and you can't delete that attribute. My test just tries to assign another attribute which doesn't exist.

I just tried to copy the style of the rest of the module, lmk if there are any problems.

----------
Added file: http://bugs.python.org/file15903/fix.patch

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


More information about the Python-bugs-list mailing list