Bruno Desthuilliers wrote:
[...]
> if you only want the first returned value, you can just apply a slice:
> 
> def f():
>    return 1,2,3
> 
> a = f()[0] + 1
> 
<nit>That isn't a slice, it's indexing</nit>

regards
 Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC              http://www.holdenweb.com/

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to