Dave Angel <da...@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

>
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to