On Thu, 18 Jan 2007 18:03:41 +0000, Neil Cerutti wrote: > On 2007-01-18, EdG <[EMAIL PROTECTED]> wrote: >> For debugging purposes, I would like to traverse the class >> listing out all the properties. > > This is the first thing that came to mind. > > def show_properties(cls): > for attr in dir(cls): > if isinstance(getattr(cls, attr), property): > print attr
Funny. The first thing that came to my mind was, "Thank you for sharing. Did you have a question?" *wink* -- Steven. -- http://mail.python.org/mailman/listinfo/python-list