[docs] [issue10488] Improve documentation for 'float' built-in.

Ezio Melotti report at bugs.python.org
Sun Nov 21 13:48:24 CET 2010


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

I would prefer to keep the doc for float() simple, including what it accepts (numbers and strings) and a few examples like ``'1.2'``, ``'.5'``, ``' +3 '``, ``'inf'``, ``'NaN'``.
Even if the other information is still valuable, I'm not sure this is the best place where to include it, and I think it might be confusing for unexperienced users.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10488>
_______________________________________


More information about the docs mailing list