pyclbr _modules cache - why?
Tim Peters
tim.one at comcast.net
Sun Mar 17 19:40:30 EST 2002
[Culley Angus]
> Does anyone know the reasoning behind forcing use of the cache in the
> pyclbr module.
Same reason anyone ever uses a cache: speed.
> I am implementing a simple ide where changes to modules are being
> updated in the gui... Alas I have had to hack the pyclbr module to
> stop it using cached data.
Consider calling pyclbr._modules.clear() instead, at such times your app
believes the cache may be stale.
> Surely if someone is implementing a classbrowser, it is a fair
> assumption that they may be updating the classes being browsed.
Sure. I'm not sure pyclbr.py was written solely for you and your particular
app, though <wink>.
More information about the Python-list
mailing list