Skip to content

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

Merged
csabella merged 1 commit intopython:masterfrom
hongweipeng:doc_object.__rpow__
Jan 5, 2020
Merged

Doc: Fixed the parameter list of object. _rpow_ in the document#16477
csabella merged 1 commit intopython:masterfrom
hongweipeng:doc_object.__rpow__

Conversation

@hongweipeng
Copy link
Copy Markdown
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
Copy Markdown
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