J
Jabba Laci
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
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