Skip to content

bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs#15062

Merged
serhiy-storchaka merged 2 commits into
python:masterfrom
dheiberg:NotImplemented_doc_fix
Jul 31, 2019
Merged

bpo-37730: Fix usage of NotImplemented instead of NotImplementedError in docs#15062
serhiy-storchaka merged 2 commits into
python:masterfrom
dheiberg:NotImplemented_doc_fix

Conversation

@dheiberg

@dheiberg dheiberg commented Jul 31, 2019

Copy link
Copy Markdown
Contributor

As mentioned in the BPO, there are some instances where NotImplemented is used when NotImplementedError was meant to be. This is the example I found after running rg -e NotImplemented[^E] Doc/, all other usages looked correct.

I have updated the Doc/library/winreg.rst file, and then noticed that the Clinic comments for PC/winreg.c were also incorrect. I updated these and ran python3 Tools/clinic/clinic.py PC/winreg.c to generate the new output. This is my first time fixing the docs here so if I have missed a step

https://bugs.python.org/issue37730

@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @dhdavvie for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7, 3.7, 3.8.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-15063 is a backport of this pull request to the 3.8 branch.

@miss-islington

Copy link
Copy Markdown
Contributor

Sorry, @dhdavvie and @serhiy-storchaka, I could not cleanly backport this to 3.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker ed5e8e06cbf766e89d6c58a882ee024abb5b2ed7 3.7

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 31, 2019
… in docs. (pythonGH-15062)

(cherry picked from commit ed5e8e0)

Co-authored-by: David H <dheiberg@mozilla.com>
@miss-islington

Copy link
Copy Markdown
Contributor

Sorry @dhdavvie and @serhiy-storchaka, I had trouble checking out the 2.7 backport branch.
Please backport using cherry_picker on command line.
cherry_picker ed5e8e06cbf766e89d6c58a882ee024abb5b2ed7 2.7

@dheiberg dheiberg deleted the NotImplemented_doc_fix branch July 31, 2019 22:57
@dheiberg

Copy link
Copy Markdown
Contributor Author

Does this branch need to be open for the cherry picking?

miss-islington added a commit that referenced this pull request Aug 4, 2019
… in docs. (GH-15062)

(cherry picked from commit ed5e8e0)

Co-authored-by: David H <dheiberg@mozilla.com>
@bedevere-bot

Copy link
Copy Markdown

GH-15106 is a backport of this pull request to the 3.7 branch.

serhiy-storchaka pushed a commit to serhiy-storchaka/cpython that referenced this pull request Aug 4, 2019
…dError in docs. (pythonGH-15062).

(cherry picked from commit ed5e8e0)

Co-authored-by: David H <dheiberg@mozilla.com>
@serhiy-storchaka

Copy link
Copy Markdown
Member

@dhdavvie, do you mind to create a backport to 2.7?

@serhiy-storchaka serhiy-storchaka removed their assignment Aug 4, 2019
serhiy-storchaka added a commit that referenced this pull request Aug 4, 2019
…dError in docs. (GH-15062). (GH-15106)

(cherry picked from commit ed5e8e0)

Co-authored-by: David H <dheiberg@mozilla.com>
dheiberg pushed a commit to dheiberg/cpython that referenced this pull request Aug 5, 2019
dheiberg pushed a commit to dheiberg/cpython that referenced this pull request Aug 5, 2019
…dError in docs. (pythonGH-15062).

(cherry picked from commit ed5e8e0)

Co-authored-by: David H <dheiberg@mozilla.com>
serhiy-storchaka pushed a commit that referenced this pull request Aug 5, 2019
…dError in docs. (GH-15062). (GH-15133)

(cherry picked from commit ed5e8e0)

Co-authored-by: David H <dheiberg@mozilla.com>
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants