Message 396148 - Python tracker (original) (raw)
I've reproduced this on 3.11 (though the AttributeError is now on enter and not exit as was the case in ):
import transaction with transaction: pass ... Traceback (most recent call last): File "", line 1, in AttributeError: enter
import sys sys.exit Traceback (most recent call last): File "", line 1, in AttributeError: module 'sys' has no attribute 'exit'