Removing None objects from a sequence

Erik Max Francis max at alcyone.com
Fri Dec 12 04:26:54 EST 2008


Filip Gruszczyński wrote:

> I would like to iterate over a sequence nad ignore all None objects.
> The most obvious way is explicitly checking if element is not None,
> but it takes too much space.

That doesn't make much sense; why would iterating over the sequence take 
more _space_?

-- 
Erik Max Francis && max at alcyone.com && http://www.alcyone.com/max/
  San Jose, CA, USA && 37 18 N 121 57 W && AIM, Y!M erikmaxfrancis
   Life is a gamble so I should / Live life more carefully
    -- TLC



More information about the Python-list mailing list