Re: [Python-Dev] update_wrapper should preserve staticmet hod behavior

2008-06-11 Thread Antoine Pitrou
Calvin Spealman socialserve.com> writes: > > staticmethod doesn't wrap anything, it just creates a descriptor on > the class with a __get__ that returns the original, untouched > callable. Doesn't even care _what_ the thing you use it on is > (function, other callable, or something else ent

Re: [Python-Dev] update_wrapper should preserve staticmet hod behavior

2008-06-11 Thread Antoine Pitrou
Calvin Spealman socialserve.com> writes: > Traceback (most recent call last): >File "", line 1, in >File "", line 3, in A >File "", line 5, in d >File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ > python2.5/functools.py", line 33, in update_wrapper > setattr(wrap