check to see if value can be an integer instead of string

Brian Cole brianc at temple.edu
Tue Jan 17 22:01:57 EST 2006


Python uses "Exceptions" to catch these "Exceptional"
situations:http://docs.python.org/tut/node10.html

-Brian Cole

On 17 Jan 2006 18:51:44 -0800, nephish at xit.net <nephish at xit.net> wrote:
> thanks for the reply, but wont python fail out if you try to make an
> integer out of what cant be an integer?
> like this :
>
> var = int(abc)
>
> wont this crash ?
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list