"Dick Moores" <[EMAIL PROTECTED]> wrote

> if type(n) == 'int' or type(n) == 'long':
>   do something

don't use strings

if type(n) == int

Or just use an instance of the same type:

if type(n) == type(42)

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to