Jim Mooney schreef:
Although I'm not sure why int('blah') wouldn't be a type error rather than a value error.
Because passing a string to int() is perfectly okay, as long as the string has an appropriate value: int('42') works, int('forty two') raises ValueError.
-- "People almost invariably arrive at their beliefs not on the basis of proof but on the basis of what they find attractive." -- Pascal Blaise r...@roelschroeven.net _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor