4 ms·
That's amazing, but doesn't work for me (python 3.6.4). Not sure I'm going to try debugging it... t = (0, 1) tuple_setitem(t, 0, 99) print(t) # (0, 1)
by Myrmornis 9y ago
That's amazing, but doesn't work for me (python 3.6.4). Not sure I'm going to try debugging it...
t = (0, 1)
tuple_setitem(t, 0, 99)
print(t)
# (0, 1)
EDIT: Ah, it seems to work in 3.6.3