Evaluating python - a question
Nick Perkins
nperkins7 at home.com
Sun May 20 01:51:14 EDT 2001
..how about a module that can check whether an object has picked up
any 'extra' attributes after a certain time?
eg:
def registe(obj): # save obj attibutes
def check(obj): # compare atts to saved...
..you could 'register' your object when it is supposed to be fully
initialized,
and then 'check' it later on.
..or maybe it could key on the class instead of the instance,
keeping a list of the 'proper' attributes for members of a class.
More information about the Python-list
mailing list