"John Washakie" <[EMAIL PROTECTED]> wrote 

> Therefore I want to be able to say:
> 
> a = [int(x) for x in tmp IF x in tmp]
> 

x will always be in tmp - thats where it comes from!
You want to check if its non null.

a = [int(x) for x in tmp if x]


Alan G

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to