Repository navigation
Add sys.last_exc, deprecate sys.last_type, sys.last_value and sys.last_traceback #102778
Copy link
Copy link
Closed
Closed
Copy link
Labels
type-featureA feature request or enhancementA feature request or enhancement
Description
Activity
- addedtype-featureA feature request or enhancementA feature request or enhancement
on Mar 17, 2023 - added a commit that references this issue
on Mar 19, 2023 - added a commit that references this issue
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?
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?
Reopening to finish idlelib.
- added a commit that references this issue
on Apr 19, 2023 Followup issue for idlelib is #102832 .
- added a commit that references this issue
on Apr 20, 2023 - added a commit that references this issue
on Jun 2, 2023
Metadata
Metadata
Assignees
Labels
type-featureA feature request or enhancementA feature request or enhancement
Linked PRs