[Python-Dev] return type of __complex__

Mark Dickinson dickinsm at gmail.com
Sun Oct 21 15:29:34 CEST 2012


On Sun, Oct 21, 2012 at 1:23 PM, Stephen J. Turnbull <stephen at xemacs.org> wrote:
> I probably not say that, but even so my personal taste would be to fix
> the docs to describe the current behavior in 2.7.  Evidently somebody
> thought "float" was appropriate

The implementation of complex_new is complicated enough that it's not
at all evident that anyone thought 'float' was appropriate;  that it's
accepted may have just been a side-effect of the implementation.

-- 
Mark


More information about the Python-Dev mailing list