Warren Stringer wrote:

>>>>c[:]()  # i wanna
>  TypeError: 'tupple' object is not callable
> 

c[:] equals c (in expressions), so c[:]() is equivalent to c()

>>>>c[:][0] # huh?
> a

c[:][0] is c[0] is a

>>>> [i() for i in c] # too long and ...huh?
> a
> b
> [None,None]
> #------------------------------------------
> 

[None, None] is the result of the operation. 

for i in c: i()

If that is too long, reconsider what you are doing. 

-- 

Regards,
Tijs
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to