[Python-Dev] return type of __complex__
Maciej Fijalkowski
fijall at gmail.com
Fri Oct 19 18:23:06 CEST 2012
More information about the Python-Dev mailing list
Fri Oct 19 18:23:06 CEST 2012
- Previous message: [Python-Dev] return type of __complex__
- Next message: [Python-Dev] return type of __complex__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Oct 19, 2012 at 5:56 PM, Benjamin Peterson <benjamin at python.org> wrote: > 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. > Nick just said it's a bug that cmath type checks are too strict.
- Previous message: [Python-Dev] return type of __complex__
- Next message: [Python-Dev] return type of __complex__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list