You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
some usages of sys.exc_info can be replaced by more modern code #102799
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.
Activity
pythongh-102799: remove unnecessary calls to sys.exc_info() in tests
pythongh-102799: remove unnecessary calls to sys.exc_info() in tests
gh-102799: remove unnecessary calls to sys.exc_info() in tests (#102800)
pythongh-102799: pydoc doesn't need to use sys.exc_info
gh-102799: Let pydoc use the exception instead of sys.exc_info (#102830)
pythongh-102799: use exception instance instead of exc_info
pythongh-102799: remove unnecessary calls to sys.exc_info() in tests (p…
pythongh-102799: Let pydoc use the exception instead of sys.exc_info (p…
gh-102799: use exception instance instead of sys.exc_info() (#102885)
iritkatriel commentedon Apr 5, 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
gh-102799: use sys.exception() instead of sys.exc_info() in tests (#1…
pythongh-102799: use sys.exception() instead of sys.exc_info() in con…
gh-102799: use `sys.exception()` instead of `sys.exc_info()` in pdb (#…
pythongh-102799: remove unnecessary calls to sys.exc_info() in tests (p…
pythongh-102799: Let pydoc use the exception instead of sys.exc_info (p…
pythongh-102799: use exception instance instead of sys.exc_info() (py…
pythongh-102799: use sys.exception() instead of sys.exc_info() in tes…
pythongh-102799: use `sys.exception()` instead of `sys.exc_info()` in…
pythongh-102799: replace sys.exc_info by sys.exception in inspect and…
gh-102799: replace sys.exc_info by sys.exception in inspect and trace…
Merge branch 'main' into inlinecomp2
pythongh-102799: replace internal sys.exc_info() call by sys.exception()
gh-102799: replace internal sys.exc_info() call by sys.exception() (#…
gh-102799: use sys.exception() instead of sys.exc_info() in contextlib (