[Python-Dev] Evil reference cycles caused Exception.traceback (original) (raw)
Antoine Pitrou antoine at python.org
Mon Sep 18 10:56:22 EDT 2017
- Previous message (by thread): [Python-Dev] Evil reference cycles caused Exception.__traceback__
- Next message (by thread): [Python-Dev] Evil reference cycles caused Exception.__traceback__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message (by thread): [Python-Dev] Evil reference cycles caused Exception.__traceback__
- Next message (by thread): [Python-Dev] Evil reference cycles caused Exception.__traceback__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]