[Tutor] Value Error
Jim Mooney
cybervigilante at gmail.com
Wed Jun 12 23:41:39 CEST 2013
Dave Angel <davea at davea.name>
import math
> print math.sqrt(-1)
Ah, that's what I was looking for. I already saw it trip on type mismatches
like int('blah'). I was looking for what would be an actual inappropriate
value that was still the right type. Although I'm not sure why int('blah')
wouldn't be a type error rather than a value error.
Jim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130612/bad243fa/attachment.html>
More information about the Tutor
mailing list