GeezerVison is showing github.com — Add sys.last_exc, deprecate sys.last_type, sys.last_value and sys.last_traceback · Issue #102778 · python/cpython
Add sys.last_exc, deprecate sys.last_type, sys.last_value and sys.last_traceback #102778Activityadded 2 commits that reference this issue on Mar 17, 2023gh-102778: Add sys.last_exc, deprecate sys.last_type, sys.last_value,… terryjreedy commented on Mar 19, 2023 I appreciate the effort to remove the traces of string exceptions. Is there a plan to actually stop adding the old last_xxx vars to sys and accessing them in other non-IDLE stdlib modules? When they are added to sys by python itself (after unhandled exceptions), could they be added as properties with a getter that would emit a deprecation warning, or are properties for python-coded classes only? iritkatriel commented on Mar 19, 2023 Yes, I would like to eventually remove the old fields.
Since they are module level variables, I don't think they can be properties. But maybe there's something we can do through intercepting getattr on the module? iritkatriel commented on Apr 6, 2023 Reopening to finish idlelib. added a commit that references this issue on Apr 19, 2023gh-102778: IDLE - make sys.last_exc available in Shell after traceback ( terryjreedy commented on Apr 19, 2023 Followup issue for idlelib is #102832 . added 3 commits that reference this issue on Jun 1, 2023gh-102778: update documentation of PyErr_PrintEx and traceback.print_…
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|