473,325 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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.

Jul 18 '05 #1
1 1500
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
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Sridhar R | last post by:
I am looking for a class browser that has these features. 1. Given a symbol (class, method or function) it should giveback the lineno n source code 2. It should be efficient and quick. I...
3
by: Thomas Aanensen | last post by:
How can I get the names of the classes in a specific module? (I don't need the subclasses or superclasses) Thomas
5
by: Edward C. Jones | last post by:
Is there a function or method that returns the name of a class or class instance? class X(object): pass X.amethod() or X().amethod() should return the string "X". X().__class__ returns...
0
by: Ed Leafe | last post by:
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...
3
by: Thomas Newman | last post by:
Hi all, I have added a few files to my project in eric3. When I want to open the tree that (supposedly) shows me the classes, I get an error: ...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 375 open ( -3) / 3264 closed (+26) / 3639 total (+23) Bugs : 910 open ( +3) / 5851 closed (+20) / 6761 total (+23) RFE : 217 open...
9
by: Ramashish Baranwal | last post by:
Hi, I want to get a module's contents (classes, functions and variables) in the order in which they are declared. Using dir(module) therefore doesn't work for me as it returns a list in...
9
by: Stef Mientki | last post by:
I want to have a (dynamically) list of all classes defined in a py-file. Is there a way of getting this list, without manually parsing the file ? thanks, Stef Mientki
2
by: Dmitry | last post by:
Hi All, I've trying to develop one Python application, and neet to solve one problem. I need to list all classes defined in one package (not module!). Could anybody please show me more...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.