Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue29894

This issue trackerhas been migrated toGitHub, and is currentlyread-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:enhancementStage:resolved
Components:Interpreter CoreVersions:Python 3.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: mark.dickinson, serhiy.storchaka
Priority:normalKeywords:

Created on2017-03-24 08:27 byserhiy.storchaka, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Pull Requests
URLStatusLinkedEdit
PR 798mergedserhiy.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 toissue26983, 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 changeset671079ef6063fe227460a6c3114625fb6282bbd0 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
DateUserActionArgs
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
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp