Hi,

I have some difficulties with list -> tuple conversion:

t = ('a', 'b')
li = list(t)   # tuple -> list, works
print li   # ['a', 'b']

tu = tuple(li)   # list -> tuple, error
print tu   # what I'd expect: ('a', 'b')

The error message is: "TypeError: 'tuple' object is not callable".

Thanks,

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

Reply via email to