[Python-Dev] unexpected consequence of function attributes

Jeremy Hylton jeremy@alum.mit.edu
Wed, 17 Jan 2001 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