-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-39677: dis: rename the operand of MAKE_FUNCTION from argc
to flags
for 3.6+
#18550
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
Conversation
Misc/NEWS.d/next/Documentation/2020-02-18-14-28-31.bpo-39677.vNHqoX.rst
Outdated
Show resolved
Hide resolved
Doc/library/dis.rst
Outdated
|
||
Pushes a new function object on the stack. From bottom to top, the consumed | ||
stack must consist of values if the argument carries a specified flag value | ||
stack must consist of values if *flags* carries a specified flag value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep this line as is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have an idea if this should be called operand
or argument
, but we shall keep consistent in the whole Python documentations.
Just changed it according to your review. If you then think argument
is not that proper just say something.
Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
I proposed to return the original wording because "flags carries a specified flag value" looked slightly tautological to me. The term I agree that the name of the argument was wrong. Thank you for your contribution! |
Thanks @thautwarm for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
The semantics of MAKE_FUNCTION's operand has changed since Python 3.6, however the documentation kept its old name
argc
, however it now works the same way as otherflags
operands, hence now we change it toflags
.https://bugs.python.org/issue39677