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

2010-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: r86648. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

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

2010-11-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: d...@python -> mark.dickinson resolution: -> accepted ___ Python tracker ___ ___ Python-b

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

2010-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch: - add some examples - mention __float__ - mention that large numeric arguments can result in an OverflowError -- Added file: http://bugs.python.org/file19744/float_builtin_doc_v2.patch ___ Python t

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

2010-11-21 Thread Eric Smith
Eric Smith added the comment: This is clearly an improvement. Do we want mention __float__? -- nosy: +eric.smith ___ Python tracker ___ _

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

2010-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: Ezio: can you suggest a better place for a specification of what float accepts? I think it's necessary (especially for people working on alternative implementations) to have the information *somewhere*. -- ___ Py

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

2010-11-21 Thread Ezio Melotti
Ezio Melotti 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 plac

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

2010-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: Ah yes; good point about __float__. I'll revise. Ezio Melotti also suggested (on #python-dev) that it would be useful to have some examples here. -- nosy: +ezio.melotti ___ Python tracker

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

2010-11-21 Thread Mark Dickinson
New submission from Mark Dickinson : The docs for 'float' are outdated, and also not entirely written in English. :-) Here's a patch. -- assignee: d...@python components: Documentation files: float_builtin_doc.patch keywords: patch messages: 121910 nosy: d...@python, mark.dickinson prio

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

2010-11-21 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file19739/float_builtin_doc.patch ___ Python tracker ___ ___ Python-bugs-list

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

2010-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: Grr. Some unintended cut-and-paste duplication there. -- Added file: http://bugs.python.org/file19740/float_builtin_doc.patch ___ Python tracker _