4 ms·True, but foo shouldn't be modifying bar anyway; make a copy instead: bar = list(bar) if bar else []by icebraining 13y agoTrue, but foo shouldn't be modifying bar anyway; make a copy instead: bar = list(bar) if bar else []