Issue1779
Created on 2008-01-10 01:00 by gvanrossum, last changed 2008-01-19 19:13 by facundobatista.
|
msg59641 - (view) |
Author: Guido van Rossum (gvanrossum) |
Date: 2008-01-10 01:00 |
|
I discovered that when converting a string to an int or float, the int
conversion allows whitespace after the sign, while the float conversion
doesn't. I think they should be consistent.
|
|
msg59691 - (view) |
Author: Guido van Rossum (gvanrossum) |
Date: 2008-01-11 01:56 |
|
Moreover I think float is right and int is wrong.
Something to fix in 3.0, probably not in 2.6 (don't want to break too
much stuff that worked in 2.5).
|
|
msg59831 - (view) |
Author: Mark Dickinson (marketdickinson) |
Date: 2008-01-12 17:35 |
|
For Python 3.0, this is a trivial fix: two lines need to be removed
from PyLong_FromString in longobject.c, and then the tests in
test_builtin need to be fixed up.
(For Python 2.6, the fix would be a bit more involved: PyOS_strtol
would also need fixing.)
A good candidate for the bug day?
|
|
msg60181 - (view) |
Author: Facundo Batista (facundobatista) |
Date: 2008-01-19 15:10 |
|
Only left the version 3.0, as the OP said it's not so important as to
break possible previous working code.
|
|
msg60195 - (view) |
Author: Juan José Conti (jjconti) |
Date: 2008-01-19 16:55 |
|
This is my first patch.
Bug fix on revision 60076.
|
|
msg60209 - (view) |
Author: Juan José Conti (jjconti) |
Date: 2008-01-19 18:45 |
|
The same patch as before plus tests.
|
|
msg60215 - (view) |
Author: Facundo Batista (facundobatista) |
Date: 2008-01-19 19:13 |
|
Fixed in r60090.
Thanks Juanjo for your contribution!
Please sign and send in a contributor form whenever you have time; the
forms are at http://www.python.org/psf/contrib/ .
|
|
| Date |
User |
Action |
Args |
| 2008-01-19 19:13:07 | facundobatista | set | status: open -> closed resolution: fixed messages:
+ msg60215 |
| 2008-01-19 18:46:00 | jjconti | set | files:
+ bug_fix_for_1779-plustests.diff messages:
+ msg60209 |
| 2008-01-19 16:55:41 | jjconti | set | files:
+ bug_fix_for_1779.diff nosy:
+ jjconti messages:
+ msg60195 |
| 2008-01-19 15:10:29 | facundobatista | set | nosy:
+ facundobatista messages:
+ msg60181 versions:
- Python 2.6, Python 2.5, Python 2.4 |
| 2008-01-12 17:35:28 | marketdickinson | set | keywords:
+ easy nosy:
+ marketdickinson messages:
+ msg59831 |
| 2008-01-11 01:56:03 | gvanrossum | set | messages:
+ msg59691 |
| 2008-01-10 01:00:02 | gvanrossum | create | |
|