[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-27 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 671079ef6063fe227460a6c3114625fb6282bbd0 by Serhiy Storchaka in branch 'master': bpo-29894: Deprecate returning an instance of complex subclass from __complex__. (#798)

[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- type: behavior -> enhancement ___ Python tracker ___

[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +701 ___ Python tracker ___ ___

[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-24 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: This is similar to issue26983, but complex() always returned exact complex. A deprecation warning is added just for uniformity with __float__ and __int__. -- components: Interpreter Core messages: 290080 nosy: mark.dickinson, serhiy.storchaka