From: Christoph Z. <ci...@on...> - 2005-11-20 11:34:14
|
Ian Bicking wrote: > I'm pretty sure traceback lines are loaded with linecache; you could > clear the cache everytime a reload is done. See last checkin. Python 2.4 updates the linecache before printing tracebacks; I'm doing the same manually for Python < 2.4 now. By the way, clearing the cache is not needed, you can just call checkcache(). Otherwise you would have to clear the whole cache, since it cannot be updated on a per module basis in Python < 2.4. -- Chris |