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 vstinner
Recipients amaury.forgeotdarc, brian.curtin, janglin, loewis, pitrou, schmir, vstinner
Date 2011-01-04.22:05:25
SpamBayes Score 3.6249892e-09
Marked as misclassified No
Message-id <1294178728.05.0.432308050845.issue9566@psf.upfronthosting.co.za>
In-reply-to
Content
> Python\pystrtod.c(902) : 'function' : conversion from 'Py_ssize_t' to 'int', possible loss of data
> Python\pystrtod.c(1023) : '=' : conversion from 'Py_ssize_t' to 'int', possible loss of data

I asked dmalcolm on IRC if int or Py_ssize_t should be used:

"this is the number of digits to use in the floating point representation, right? it strikes me that if you're overflowing an int, you're asking for a very very very long string" (yes, INT_MAX is usually 2^31)

"... looking at usage of precision seems to ultimately land in Python/dtoa.c, which uses int..."
History
Date User Action Args
2011-01-04 22:05:28vstinnersetrecipients: + vstinner, loewis, amaury.forgeotdarc, pitrou, schmir, brian.curtin, janglin
2011-01-04 22:05:28vstinnersetmessageid: <1294178728.05.0.432308050845.issue9566@psf.upfronthosting.co.za>
2011-01-04 22:05:25vstinnerlinkissue9566 messages
2011-01-04 22:05:25vstinnercreate