This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Argument Clinic should not exclude __complex__ methods
Type: behavior Stage: resolved
Components: Demos and Tools Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: mark.dickinson Nosy List: mark.dickinson
Priority: normal Keywords: patch

Created on 2021-08-22 10:45 by mark.dickinson, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 27886 merged mark.dickinson, 2021-08-22 10:48
Messages (2)
msg400066 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2021-08-22 10:45
The argument clinic currently refuses to handle a __complex__ method. However, unlike __int__ and __float__, __complex__ should require no special handling by the argument clinic, since there's no dedicated slot for the __complex__ method.

PR arriving shortly.
msg400069 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2021-08-22 12:13
New changeset c5c3fbe2a16a8fcb77eb98eda53efb3e03b863ca by Mark Dickinson in branch 'main':
bpo-44978: allow Argument Clinic to handle __complex__ special methods (GH-27886)
https://github.com/python/cpython/commit/c5c3fbe2a16a8fcb77eb98eda53efb3e03b863ca
History
Date User Action Args
2022-04-11 14:59:49adminsetgithub: 89141
2021-08-22 12:30:50mark.dickinsonsetstatus: open -> closed
assignee: mark.dickinson
resolution: fixed
stage: patch review -> resolved
2021-08-22 12:13:41mark.dickinsonsetmessages: + msg400069
2021-08-22 10:48:38mark.dickinsonsetkeywords: + patch
stage: patch review
pull_requests: + pull_request26340
2021-08-22 10:45:03mark.dickinsoncreate