[Python-Dev] return type of complex (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Oct 22 02:15:27 CEST 2012


Stephen J. Turnbull wrote:

Evidently somebody thought "float" was appropriate, or they would have just written "Returns a complex value."

It's not quite as simple as that, because that paragraph in the docs is actually shared between the descriptions of int, float and complex. So it's ambiguous whether "appropriate" means of the exact type corresponding to the name of the function, or something substitutable for that type.

-- Greg



More information about the Python-Dev mailing list