Message29624
In int_new (Objects/intobject.c), embedded NUL chars
are handled differently.
We should check that the entire string is converted
like PyNumber_Int(). int('5\0') raises an exception.
int('5\0', 10) returns 5.
>>> int('5\0', 10)
5
>>> int('5\0')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: null byte in argument for int()
The difference is the explicit vs implicit base. |
|
| Date |
User |
Action |
Args |
| 2007-08-23 14:42:14 | admin | link | issue1545497 messages |
| 2007-08-23 14:42:14 | admin | create | |
|