Re: pyclbr
Fernando San MartÃn Woerner wrote: > Hi guys! > > i'm using pycblr to implement a class browser for my app, i got some > issues about it: > > i did: > > dict = pyclbr.readmodule(name, [dir] + sys.path) Don't use dict (or the name of any other built-in function) as an identifier! It shadows the built-in function and can be quite confusing for others reading your code. It's sufficient to give only [dir] as the second parameter. sys.path is always searched. (http://docs.python.org/lib/module-pyclbr.html) > but this only works one time, i mean if module "name" is changed and > some class were added or removed i can't see any changes even if i > execute readmodule again. > > any idea?, thanks in advance pyclbr caches modules it has already read. I think there is no method for clearing that cache, so you have to reload(pyclbr) in order to see your changes. Bye, Dennis -- http://mail.python.org/mailman/listinfo/python-list
pyclbr
Hi guys! i'm using pycblr to implement a class browser for my app, i got some issues about it: i did: dict = pyclbr.readmodule(name, [dir] + sys.path) but this only works one time, i mean if module "name" is changed and some class were added or removed i can't see any changes even if i execute readmodule again. any idea?, thanks in advance -- Fernando San MartÃn Woerner Jefe de InformÃtica Galilea S.A. -- http://mail.python.org/mailman/listinfo/python-list
Using pyclbr
I've been playing around with pyclbr today, and it does what I need it to do. The only problem is that it seems r-e-e-e-a-a-a-a-l-l-l-l-y-y-y slow! I called pyclbr.readmodule() with a file that was about 2K in size, and which contained only two classes. That call took over 12 seconds to complete! I tried also passing the optional path to the module, but it had no effect on the speed. Is this normal? Is there anything I can do to improve performance? I'm running Python 2.3.4 on Mac OS X 10.3. ___/ / __/ / / Ed Leafe http://leafe.com/ http://dabodev.com/ -- http://mail.python.org/mailman/listinfo/python-list