On Fri, Oct 19, 2012 at 5:31 PM, Christian Heimes <christian at python.org> wrote: > In order to fix the bug the code in PyComplex_AsCComplex() must be > altered to support float as return type from __complex__(). That's a > major change. Agreed that this doesn't seem appropriate for bugfix releases. We might also want to consider having PyComplex_AsCComplex check for __float__, again for consistency with the 'complex' constructor: >>> class A(object): ... def __float__(self): ... return 42.0 ... >>> a = A() >>> float(a) 42.0 >>> complex(a) (42+0j) Mark
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