how to list the attributes of a class, not an object?
Robert P. J. Day
rpjday at crashcourse.ca
Sun Jan 24 16:28:26 CET 2010
once again, probably a trivial question but i googled and didn't
get an obvious solution. how to list the attributes of a *class*?
eg., i was playing with dicts and noticed that the type returned by
the keys() method was "dict_keys". so i'm now curious as to the
attributes of the dict_keys class. but i don't know how to look at
that without first *creating* such an instance, then asking for
surely there's a simpler way just using the class name, no?
p.s. any recommendations for the most concise reference sheet for
python 3 that exists? being able to print off the entire language
spec on two or four pages and tacking it up in front of me would be
just ducky. thanks.
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://crashcourse.ca
More information about the Python-list