Visitar URL original
bpo-44426: Fix use of the C keyword 'default' as a variable name by mdickinson · Pull Request #26798 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20221223064212/https://github.com/python/cpython/pull/26798
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-44426: Fix use of the C keyword 'default' as a variable name #26798

Merged

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented Jun 19, 2021 •

The declaration

.. c:function:: Py_ssize_t PyObject_LengthHint(PyObject *o, Py_ssize_t default)

causes Sphinx >= 4.0 to issue a warning about the use of the C keyword default as a variable name. This PR changes default to defaultvalue, which is what's used in the actual abstract.c source.

https://bugs.python.org/issue44426

Copy link
Member

@corona10 corona10 left a comment

lgtm

@mdickinson mdickinson merged commit 2918481 into python:main Jun 19, 2021
13 checks passed
@miss-islington
Copy link
Contributor

miss-islington commented Jun 19, 2021

Thanks @mdickinson for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.9.
🐍🍒⛏🤖

@bedevere-bot
Copy link

bedevere-bot commented Jun 19, 2021

GH-26804 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 19, 2021
…honGH-26798)

(cherry picked from commit 2918481)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 19, 2021
…honGH-26798)

(cherry picked from commit 2918481)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
@bedevere-bot
Copy link

bedevere-bot commented Jun 19, 2021

GH-26805 is a backport of this pull request to the 3.9 branch.

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.

None yet

5 participants