I was playing around with the inspect module tonight, and I have a
question about "code components". Can an object have more than one
code component? For example, will the following code ever create a
list whose length is greater than one?

import inspect

# Some code here defining an object/function foo

components = [cc[1] for cc in inspect.getmembers(foo,\
    inspect.iscode)]

-- 
Evan Klitzke <[EMAIL PROTECTED]>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to