pyclbr

  • Thread starter Fernando San =?ISO-8859-1?Q?Mart=EDn?= Woerner
  • Start date
F

Fernando San =?ISO-8859-1?Q?Mart=EDn?= Woerner

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
 
D

Dennis Benzinger

Fernando said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,219
Messages
2,571,118
Members
47,731
Latest member
unutbu

Latest Threads

Top