"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 - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor