You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecate returning a subclass of complex from __complex__ #74080
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2017-03-27.18:06:06.242>created_at=<Date2017-03-24.08:27:24.474>labels= ['interpreter-core', 'type-feature', '3.7']
title='Deprecate returning a subclass of complex from __complex__'updated_at=<Date2017-03-27.18:06:06.241>user='https://github.com/serhiy-storchaka'
This is similar to bpo-26983, but complex() always returned exact complex. A deprecation warning is added just for uniformity with __float__ and __int__.
New changeset 671079e by Serhiy Storchaka in branch 'master': bpo-29894: Deprecate returning an instance of complex subclass from __complex__. (#798) 671079e
Activity
serhiy-storchaka commentedon Mar 24, 2017
This is similar to bpo-26983, but complex() always returned exact complex. A deprecation warning is added just for uniformity with __float__ and __int__.
serhiy-storchaka commentedon Mar 24, 2017
New changeset 671079e by Serhiy Storchaka in branch 'master':
bpo-29894: Deprecate returning an instance of complex subclass from __complex__. (#798)
671079e