Avoiding "invalid literal for int()" exception
gagsl-py at yahoo.com.ar
Tue Dec 12 11:11:55 CET 2006
Marc 'BlackJack' Rintsch ha escrito:
> In <mailman.1415.1165879866.32031.python-list at python.org>, Gabriel
> Genellina wrote:
> > elif uniList.isdigit():
> The last does not work. Not only that it accepts numbers greater than 9
> because it checks if the whole string consists of digits, it also accepts
> u'²₂' and other unicode digits.
Oh, I didn't know that last part! Thanks.
I get a bit confused by the , thinking it was checking a single
More information about the Python-list