![](https://secure.gravatar.com/avatar/1efc90ff6075b7654d8a8ce6e51a2cd3.jpg?s=120&d=mm&r=g)
Guido van Rossum <guido@python.org> writes:
Speaking entirely from a point of ignorance, why are the source line #s not shown for frames that are implemented in modules loaded from zipimport?
Because the code printing the tracebacks doesn't know how to look inside a zip file.
It Would Be Nice (tm) if the code that printed tracebacks could be made cleverer in some fashion. For instance, in a pyrepl session I have the source in the session's history and it would surely be nice if I could display it in tracebacks. Of course, I have no idea how to go about implementing this :-) Cheers, M. -- I never realized it before, but having looked that over I'm certain I'd rather have my eyes burned out by zombies with flaming dung sticks than work on a conscientious Unicode regex engine. -- Tim Peters, 3 Dec 1998