Skip to content

Remove global configuration variable Py_UseClassExceptionsFlag #76306

Closed

Description

@vstinner
BPO 32125
Nosy @vstinner
PRs
  • bpo-32125: Remove Py_UseClassExceptionsFlag flag #4544
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2017-11-24.21:37:21.751>
    created_at = <Date 2017-11-24.15:20:05.699>
    labels = ['interpreter-core', '3.7']
    title = 'Remove global configuration variable Py_UseClassExceptionsFlag'
    updated_at = <Date 2017-11-24.21:37:21.750>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2017-11-24.21:37:21.750>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-11-24.21:37:21.751>
    closer = 'vstinner'
    components = ['Interpreter Core']
    creation = <Date 2017-11-24.15:20:05.699>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32125
    keywords = ['patch']
    message_count = 2.0
    messages = ['306900', '306918']
    nosy_count = 1.0
    nosy_names = ['vstinner']
    pr_nums = ['4544']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue32125'
    versions = ['Python 3.7']

    Activity

    1. vstinner commented on Nov 24, 2017

      @vstinner
      MemberAuthor

      The Py_UseClassExceptionsFlag flag was added by the commit 035574d.

      The commit 757af0e started to use this flag:

      + /* if Python was started with -X, initialize the class exceptions */
      + if (Py_UseClassExceptionsFlag)
      + init_class_exc(dict);

      Later followed by commit 98b6246.

      The flag was finally deprecated in the commit 3ce0964 in 2000.

      All these changes are older than Python 2.0.

      In Python 2.7 and 3.6, the flag is not used at all.

      I think that it's time to remove it :-)

    2. vstinner commented on Nov 24, 2017

      @vstinner
      MemberAuthor

      New changeset da9c8c3 by Victor Stinner in branch 'master':
      bpo-32125: Remove Py_UseClassExceptionsFlag flag (bpo-4544)
      da9c8c3

    3. transferred this issue fromon Apr 10, 2022
    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

      3.7 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions