A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-October/122252.html below:

[Python-Dev] return type of __complex__

[Python-Dev] return type of __complex__ [Python-Dev] return type of __complex__Benjamin Peterson benjamin at python.org
Fri Oct 19 17:56:47 CEST 2012
2012/10/19 Tres Seaver <tseaver at palladion.com>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/19/2012 11:26 AM, Benjamin Peterson wrote:
>> 2012/10/19 Antonio Cuni <anto.cuni at gmail.com>:
>>> indeed, you are right. So I suppose that in pypy we could just relax
>>> the check in cmath and be happy. Is there any chance that this will
>>> be changed in 2.7 and/or 3.x?
>>
>> Certainly 3.x, but not 2.7.
>
> Why not 2.7?  It is a perfectly-backward-compatible change:  no
> currenly-working code could possibly break if cmath's restriction was
> relaxed.


It's a new feature. Also, it's possible that someone is relying on it
throwing for non-complex values.


-- 
Regards,
Benjamin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4