Finding the public callables of self

Lonnie Princehouse finite.automaton at gmail.com
Thu Feb 9 12:54:19 EST 2006


Ha!  I didn't realize that was getmembers' implementation.  What a hack
;-)

In fact, your way is faster, since getmembers is taking the time to
sort its results (presumably so that repeated calls to the same object
will yield the same list; I don't think dir has a guaranteed ordering)




More information about the Python-list mailing list