On Tue, 23 Oct 2007 11:48:08 +0200, Loic Mahe wrote:

> even shorter:
> 
> def funcA(tarray):
>      s = min(len(tarray), 3)
>      return [2, 3, 4][0:s] + [e for e in funcB(3-s)[0:3-s]]

Why the list comprehension!?

Ciao,
        Marc 'Blackjack' Rintsch
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to