Skip to content

Conversation

@pablogsal
Copy link
Member

@pablogsal pablogsal commented Jul 30, 2019

Deprecate the parser module and add a deprecation warning triggered on import and a warning block in the documentation.

https://bugs.python.org/issue37268

Automerge-Triggered-By: @pablogsal

@pablogsal
Copy link
Member Author

Let's deprecate this once and for all! ⚔️


if (PyErr_WarnEx(PyExc_DeprecationWarning,
"The parser module is deprecated and will be removed "
"in future versions of Python", 7) != 0) {
Copy link
Member Author

@pablogsal pablogsal Jul 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

7 is the magic number to skip all importlib._bootstrap_external (tested in test_deprecation_message). 🙃

@pablogsal pablogsal self-assigned this Jul 30, 2019
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pablogsal
Copy link
Member Author

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@miss-islington miss-islington merged commit 9211e2f into python:master Jul 30, 2019
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
…rser module (pythonGH-15017)

Deprecate the parser module and add a deprecation warning triggered on import and a warning block in the documentation.





https://bugs.python.org/issue37268



Automerge-Triggered-By: @pablogsal
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
…rser module (pythonGH-15017)

Deprecate the parser module and add a deprecation warning triggered on import and a warning block in the documentation.





https://bugs.python.org/issue37268



Automerge-Triggered-By: @pablogsal
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
…rser module (pythonGH-15017)

Deprecate the parser module and add a deprecation warning triggered on import and a warning block in the documentation.





https://bugs.python.org/issue37268



Automerge-Triggered-By: @pablogsal
@pablogsal pablogsal deleted the bpo37268 branch May 19, 2021 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants