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: Deprecate returning a subclass of complex from __complex__
Type: enhancement Stage: resolved
Components: Interpreter Core Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: mark.dickinson, serhiy.storchaka
Priority: normal Keywords:

Created on 2017-03-24 08:27 by serhiy.storchaka, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 798 merged serhiy.storchaka, 2017-03-24 08:32
Messages (2)
msg290080 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-03-24 08:27
This is similar to issue26983, but complex() always returned exact complex. A deprecation warning is added just for uniformity with __float__ and __int__.
msg290108 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-03-24 19:28
New changeset 671079ef6063fe227460a6c3114625fb6282bbd0 by Serhiy Storchaka in branch 'master':
bpo-29894: Deprecate returning an instance of complex subclass from __complex__. (#798)
https://github.com/python/cpython/commit/671079ef6063fe227460a6c3114625fb6282bbd0
History
Date User Action Args
2022-04-11 14:58:44adminsetgithub: 74080
2017-03-27 18:06:06serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-03-24 19:28:45serhiy.storchakasetmessages: + msg290108
2017-03-24 08:33:06serhiy.storchakasettype: behavior -> enhancement
2017-03-24 08:32:48serhiy.storchakasetpull_requests: + pull_request701
2017-03-24 08:27:24serhiy.storchakacreate