[issue44072] Doc: power operator (`**`) present for numbers.Complex, not added in numbers.Integral
New submission from Rory Yorke : Checked at commit 42fcad2, HEAD of main circa 8 May 2021. cpython/Doc/library/numbers.rst says numbers.Complex subtypes "include the operations [...] ``+``, ``-``, ``*``, ``/``, :func:`abs`, :meth:`conjugate`, ``==``, and ``!=``" and for numbers.Integral: "Adds abstract methods for ``**`` and" However, in cpython/Lib/numbers.py, the class Complex has `__pow__` and `__rpow__` methods, which makes sense mathematically. The numbers.Class docstring is also missing a mention of `**`. class.Integral does define a three-argument __pow__ for three-argument pow(). -- assignee: docs@python components: Documentation messages: 393240 nosy: docs@python, roryyorke priority: normal severity: normal status: open title: Doc: power operator (`**`) present for numbers.Complex, not added in numbers.Integral versions: Python 3.11 ___ Python tracker <https://bugs.python.org/issue44072> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44074] patchcheck checks against branch "master" not "main"
New submission from Rory Yorke : I'm probably missing something, but "master" seems hard-coded into patchcheck.py, and I couldn't find any related issues on bpo. Checked on branch off 42fcad2. When I ran patchcheck: rory@rory-latitude:~/src/cpython$ ./python Tools/scripts/patchcheck.py Getting base branch for PR ... origin/master Getting the list of files that have been added/changed ... fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]' 0 files The obvious offender is line 81 of Tools/scripts/patchcheck.py: base_branch = "master" Changing this to "main" results in useful output, but I imagine one would want to check for both "master" and "main" for a while yet? -- components: Demos and Tools messages: 393244 nosy: roryyorke priority: normal severity: normal status: open title: patchcheck checks against branch "master" not "main" ___ Python tracker <https://bugs.python.org/issue44074> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue44072] Doc: power operator (`**`) present for numbers.Complex, not added in numbers.Integral
Change by Rory Yorke : -- keywords: +patch pull_requests: +24638 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25986 ___ Python tracker <https://bugs.python.org/issue44072> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com