[Python-Dev] return type of __complex__
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