Newbie-Can I loop thru all class variables?
Eric
ewalstad at yahoo.com
Mon Oct 2 14:24:53 EDT 2000
> It sounds like you want user's variables, which are the attributes of
> an instance (or instance variables, or data members), not CUser's
> variables, which are the class variables.
>
> Instance variables are in user.__dict__; I think user.__dict__.keys()
> is what you want.
Yes, I am looking for instance variables, not class variables. Sorry for
the confusion and thanks for the help! "__dict__" was just what I was
looking for!
Eric.
More information about the Python-list
mailing list