checking if a list is empty

Hans Georg Schaathun hg at schaathun.net
Wed May 11 13:46:01 EDT 2011


On Wed, 11 May 2011 10:31:59 -0600, Ian Kelly
  <ian.g.kelly at gmail.com> wrote:
:  (x + 3 for x in xs if x % 2 == 1)

Interesting.  Thanks.  That might come in handy some time.

-- 
:-- Hans Georg



More information about the Python-list mailing list