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

Doc: Fixed the parameter list of object. _rpow_ in the document #16477

Merged
merged 1 commit into from
Jan 5, 2020

Conversation

hongweipeng
Copy link
Contributor

The parameter list of object.__rpow__ should be the same as object.__pow__. As described in typeobject.c:

    NBSLOT("__pow__", nb_power, slot_nb_power, wrap_ternaryfunc,
           "__pow__($self, value, mod=None, /)\n--\n\nReturn pow(self, value, mod)."),
    NBSLOT("__rpow__", nb_power, slot_nb_power, wrap_ternaryfunc_r,
           "__rpow__($self, value, mod=None, /)\n--\n\nReturn pow(value, self, mod)."),

@miss-islington
Copy link
Contributor

Thanks @hongweipeng for the PR, and @csabella for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 5, 2020
(cherry picked from commit abc0c4f)

Co-authored-by: HongWeipeng <961365124@qq.com>
miss-islington added a commit that referenced this pull request Jan 5, 2020
(cherry picked from commit abc0c4f)

Co-authored-by: HongWeipeng <961365124@qq.com>
miss-islington added a commit that referenced this pull request Jan 5, 2020
(cherry picked from commit abc0c4f)

Co-authored-by: HongWeipeng <961365124@qq.com>
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 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 issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants