> -----Original Message-----
> From: python-list-bounces+andreas.tawn=ubisoft....@python.org [mailto:python-
> list-bounces+andreas.tawn=ubisoft....@python.org] On Behalf Of Paul Rubin
> Sent: Tuesday, June 30, 2009 11:27 AM
> To: python-list@python.org
> Subject: Re: Specific iterator in one line
> 
> "Andreas Tawn" <andreas.t...@ubisoft.com> writes:
> > list("".join([("a","b"*2)[x] for x in [1,0,0,1]])
> > 50 characters. Do I win £5?
> 
> Er, missing right paren.  Try:
> 
> list("".join(("a","bb")[x] for x in [1,0,0,1]))
> --

Indeed. Stupid paste ;o)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to