Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bpo-37268: Add deprecation notice and a DeprecationWarning for the parser module#15017

Merged
miss-islington merged 3 commits into
python:masterpython/cpython:masterfrom
pablogsal:bpo37268pablogsal/cpython:bpo37268Copy head branch name to clipboard
Jul 30, 2019
Merged

bpo-37268: Add deprecation notice and a DeprecationWarning for the parser module#15017
miss-islington merged 3 commits into
python:masterpython/cpython:masterfrom
pablogsal:bpo37268pablogsal/cpython:bpo37268Copy head branch name to clipboard

Conversation

@pablogsal

@pablogsal pablogsal commented Jul 30, 2019

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

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

Comment thread Modules/parsermodule.c

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

@pablogsal pablogsal Jul 30, 2019

Copy link
Copy Markdown
Member Author

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

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You should document the deprecation around https://docs.python.org/dev/whatsnew/3.9.html#deprecated

Comment thread Lib/test/test_parser.py
@pablogsal

Copy link
Copy Markdown
Member Author

You should document the deprecation around https://docs.python.org/dev/whatsnew/3.9.html#deprecated

Done!

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.