Re: Best way to enumerate classes in a module

2009-06-26 Thread Michele Simionato
On Jun 24, 7:07 pm, Terry Reedy wrote: > Дамјан Георгиевски wrote: > > I need to programmaticaly enumerate all the classes in a given module. > > Currently I'm using dir(module) but the Notice on the documentation page > > [1]  says "dir() is supplied primarily as a convenience for use at an > > i

Re: Best way to enumerate classes in a module

2009-06-26 Thread Steven D'Aprano
On Thu, 25 Jun 2009 11:30:03 -0500, Nick Craig-Wood wrote: >> Something makes me think that module.__dict__ was only added to Python >> fairly recently, but I'm not sure. > > It exists in python2.1 - I don't have an older python to check at the > moment. $ python1.5 Python 1.5.2 (#1, Apr 1 20

Re: Best way to enumerate classes in a module

2009-06-25 Thread Nick Craig-Wood
Carl Banks wrote: > On Jun 23, 10:02 pm, Дамјан Георгиевски wrote: > > I need to programmaticaly enumerate all the classes in a given module. > > Currently I'm using dir(module) but the Notice on the documentation page > > [1]  says "dir() is supplied primarily as a convenience for use at an > >

Re: Best way to enumerate classes in a module

2009-06-24 Thread Terry Reedy
Дамјан Георгиевски wrote: I need to programmaticaly enumerate all the classes in a given module. Currently I'm using dir(module) but the Notice on the documentation page [1] says "dir() is supplied primarily as a convenience for use at an interactive prompt" so that kind of scares me. That n

Re: Best way to enumerate classes in a module

2009-06-24 Thread Carl Banks
On Jun 23, 10:02 pm, Дамјан Георгиевски wrote: > I need to programmaticaly enumerate all the classes in a given module. > Currently I'm using dir(module) but the Notice on the documentation page > [1]  says "dir() is supplied primarily as a convenience for use at an > interactive prompt" so that k

Re: Best way to enumerate classes in a module

2009-06-23 Thread Peter Otten
Дамјан Георгиевски wrote: > I need to programmaticaly enumerate all the classes in a given module. > Currently I'm using dir(module) but the Notice on the documentation page > [1] says "dir() is supplied primarily as a convenience for use at an > interactive prompt" so that kind of scares me. >