Skip to content

Add sys.last_exc, deprecate sys.last_type, sys.last_value and sys.last_traceback #102778

Activity

  1. added 2 commits that reference this issue on Mar 17, 2023
  2. added a commit that references this issue on Mar 19, 2023
  3. added a commit that references this issue on Mar 19, 2023
  4. terryjreedy commented on Mar 19, 2023

    @terryjreedy
    Member

    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?

  5. iritkatriel commented on Mar 19, 2023

    @iritkatriel
    MemberAuthor

    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?

  6. added 2 commits that reference this issue on Mar 27, 2023
  7. added a commit that references this issue on Apr 6, 2023
  8. iritkatriel commented on Apr 6, 2023

    @iritkatriel
    MemberAuthor

    Reopening to finish idlelib.

  9. added 2 commits that reference this issue on Apr 11, 2023
  10. added a commit that references this issue on Apr 19, 2023
  11. terryjreedy commented on Apr 19, 2023

    @terryjreedy
    Member

    Followup issue for idlelib is #102832 .

  12. added a commit that references this issue on Apr 20, 2023
  13. added 3 commits that reference this issue on Jun 1, 2023
  14. added a commit that references this issue on Jun 2, 2023
  15. added a commit that references this issue on Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions