3 ms·
Agreed. tup[0] = tup[0] + [1] fails as expected.
by bpicolo 11y ago
Agreed. tup[0] = tup[0] + [1] fails as expected.
- maxerickson 11y agoThe semantics of augmented assignment are (slightly) different than normal assignment: https://docs.python.org/3.4/reference/simple_stmts.html#grammar-token-augmented_assignment_stmt https://docs.python.org/3.4/reference/simple_stmts.html#gram...