Message166037
The behavior seems acceptable in 2.7 too.
>>> int('\0')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: ''
>>> int('\01')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '\x01'
>>> int(u'\0')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'decimal' codec can't encode character u'\x00' in position 0: invalid decimal Unicode string
>>> int(u'\01')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: invalid literal for int() with base 10: '\x01' |
|
Date |
User |
Action |
Args |
2012-07-21 14:57:58 | flox | set | recipients:
+ flox, exarkun, mark.dickinson, belopolsky, ezio.melotti |
2012-07-21 14:57:58 | flox | set | messageid: <1342882678.14.0.368955438687.issue7710@psf.upfronthosting.co.za> |
2012-07-21 14:57:57 | flox | link | issue7710 messages |
2012-07-21 14:57:57 | flox | create | |
|