This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients and, docs@python, ezio.melotti, rhettinger, zach.ware
Date 2014-06-01.22:38:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I think there should be a precise definition of what is 
> considered to be a number there.

Sometimes "precise" definitions make the docs harder to use rather than easier.  It is the goal of these docs to basically tell what int() does, not to provide a spec for it.

For most users for the past 20+ years, what we already have was sufficient for them to understand that int('42') returned the integer 42 and that int('xyz') did not have a valid interpretation as an integer.

FWIW, there are other parts of the docs that do have more precise specs about precisely specifies what can go in floats, identifiers, etc.  Those parts of the docs are rarely used or read however, because what we have gets the job done reasonably well.

For comparison look at the docs in other languages where the descriptions tend to be more much pithy, leaving intelligent people to fill in the blanks in a reasonable way.
Date User Action Args
2014-06-01 22:38:44rhettingersetrecipients: + rhettinger, ezio.melotti, docs@python, zach.ware, and
2014-06-01 22:38:44rhettingersetmessageid: <>
2014-06-01 22:38:43rhettingerlinkissue21611 messages
2014-06-01 22:38:43rhettingercreate