Repository navigation
some usages of sys.exc_info can be replaced by more modern code #102799
Copy link
Copy link
Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
Description
Activity
- addedtype-featureA feature request or enhancementA feature request or enhancementstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
on Mar 17, 2023 - added 6 commits that reference this issue
on Mar 17, 2023 Now that 3.10 is out of bugfix mode, we can use sys.exception() (which exists since 3.11, so would not cause issues with normal bugfix backports).
2 remaining items
- added a commit that references this issue
on Apr 9, 2023 - added 5 commits that reference this issue
on Apr 11, 2023 - added a commit that references this issue
on May 1, 2023 - added a commit that references this issue
on Jul 20, 2023
Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancementA feature request or enhancement
There are some obvious places where sys.exc_info() can be replaced by direct access to a captured exception (without needing any new features that could complicate backports.)
Need to avoid changing tests that are testing exc_info, like generator tests or sys.
Linked PRs