[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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)
https://github.com/python/cpython/commit/671079ef6063fe227460a6c3114625fb6282bbd0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
type: behavior -> enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29894] Deprecate returning a subclass of complex from __complex__

2017-03-24 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +701

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
priority: normal
severity: normal
stage: patch review
status: open
title: Deprecate returning a subclass of complex from __complex__
type: behavior
versions: Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com