[Python-Dev] unexpected consequence of function attributes

Jeremy Hylton jeremy@alum.mit.edu
2001年1月17日 14:12:47 -0500 (EST)


I have found one place in the library that depended on 
hasattr(func, '__dict__') to return false -- dis.dis. You might want
to check and see if there is anything other code that doesn't expect
function's to have extra attributes. I expect that only introspective
code would be affected.
Jeremy

AltStyle によって変換されたページ (->オリジナル) /