[Python-Dev] Evil reference cycles caused Exception.traceback (original) (raw)

Antoine Pitrou antoine at python.org
Mon Sep 18 10:56:22 EDT 2017


Le 18/09/2017 à 16:52, Guido van Rossum a écrit :

In Python 2 the traceback was not part of the exception object because there was (originally) no cycle GC. In Python GC we changed the awkward interface to something more useful, because we could depend on GC. Why are we now trying to roll back this feature? We should just improve GC. (Or perhaps you shouldn't be raising so many exceptions. :-)

Improving the GC is obviously a good thing, but what heuristic would you have in mind that may solve the issue at hand?

Regards

Antoine.



More information about the Python-Dev mailing list