Re:Optimization tricks in Python: lists and tuples
by viraptor on Thursday June 14, 2018 @09:18AM
(#17311425)
There's a pretty bad mistake at the beginning:
Appending to a list contained in a tuple does not change the tuple. The immutable object does not change here.
[ Parent
| on HN ]
Re:Optimization tricks in Python: lists and tuples
by rushter on Thursday June 14, 2018 @09:21AM
(#17311449)
Thanks, it's a typo, I was referring to the mutable object (list).
Re:Optimization tricks in Python: lists and tuples
by theduality on Thursday June 14, 2018 @09:35AM
(#17311538)
Also an amusing one: "You can't assing an item to a tuple:"