R. David Murray wrote:
I can give you one data point: a mobile platform that (currently) uses Python3, and does not use linecache because of how much memory it consumes.
Wouldn't a sensible approach be to discard the linecache when you've finished generating a traceback? You're not likely to be generating tracebacks often enough to be worth keeping it from one to the next. -- Greg _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com