homepage

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 mark.dickinson
Recipients mark.dickinson, richyk
Date 2008年07月16日.09:01:44
SpamBayes Score 0.03759639
Marked as misclassified No
Message-id <1216198906.94.0.24914282055.issue3360@psf.upfronthosting.co.za>
In-reply-to
Content
> >>> x = 0800000000000000000000.0
Urk. That should be:
>>> x = 01000000000000000000000.0
The problem is in the parsenumber function in Python/ast.c. The 
solution seems to be very simple: just remove the entire branch that 
starts with
"if (s[0] == '0')"; that branch is clearly a holdover from pre-Python 
2.4 days when some octal literals were supposed to produce a negative 
int.
Now I just have to figure out where to add tests for this. Maybe there 
should be a test_float_literal to parallel test_int_literal?
History
Date User Action Args
2008年07月16日 09:01:47mark.dickinsonsetspambayes_score: 0.0375964 -> 0.03759639
recipients: + mark.dickinson, richyk
2008年07月16日 09:01:46mark.dickinsonsetspambayes_score: 0.0375964 -> 0.0375964
messageid: <1216198906.94.0.24914282055.issue3360@psf.upfronthosting.co.za>
2008年07月16日 09:01:46mark.dickinsonlinkissue3360 messages
2008年07月16日 09:01:45mark.dickinsoncreate

AltStyle によって変換されたページ (->オリジナル) /