[issue2533] Invalid TypeError with class method decorator and class method parameter
Amaury Forgeot d'Arc
report at bugs.python.org
Wed Apr 2 09:37:18 CEST 2008
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
First, your code does not compile: when compiling the DecorateMe class
body, the DecorateMe class does not yet exist, and
"callback=DecorateMe.callback" is an error!
And this explains your surprise: certainly there is a previous version
of a DecorateMe class in your module (or interactive session). This
other class has the same name, but it is still a different class, hence
the message.
----------
nosy: +amaury.forgeotdarc
resolution: -> invalid
status: open -> closed
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2533>
__________________________________
More information about the Python-bugs-list
mailing list