Traceback and source code

Fredrik Lundh fredrik at effbot.org
Wed Dec 13 12:32:02 EST 2000


Jarno J Virtanen wrote:
> I'd be interested to know how the traceback module is syncronized
> with the actual source code (file).

It's cached by the "linecache" module.

To reset the cache, use linecache.clearcache()

</F>

<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->





More information about the Python-list mailing list