This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Remove global configuration variable Py_UseClassExceptionsFlag
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.7
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: vstinner
Priority: normal Keywords: patch

Created on 2017-11-24 15:20 by vstinner, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 4544 merged vstinner, 2017-11-24 20:24
Messages (2)
msg306900 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-11-24 15:20
The Py_UseClassExceptionsFlag flag was added by the commit 035574d755bfc306704e9975dc10e4e05a47b3bb.

The commit 757af0e7bb7c7d56670fbc84f1f5b0182a54e3d5 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 98b6246c0c60f2831b0c7a66d8c0659ebac1ec32.

The flag was finally deprecated in the commit 3ce096459e348c95c2c3348f8d84720f25c1a4c9 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 :-)
msg306918 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-11-24 21:06
New changeset da9c8c36aeb60ad8f7748a735c372bf993d2e4f3 by Victor Stinner in branch 'master':
bpo-32125: Remove Py_UseClassExceptionsFlag flag (#4544)
Date User Action Args
2022-04-11 14:58:54adminsetgithub: 76306
2017-11-24 21:37:21vstinnersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-11-24 21:06:40vstinnersetmessages: + msg306918
2017-11-24 20:24:53vstinnersetkeywords: + patch
stage: patch review
pull_requests: + pull_request4479
2017-11-24 15:20:05vstinnercreate