[Python-ideas] Allow using ** twice
Devin Jeanpierre
jeanpierreda at gmail.com
Thu Jun 6 23:30:41 CEST 2013
On Thu, Jun 6, 2013 at 3:33 PM, Peter Jung <ilmiacs at gmail.com> wrote:
> I'd take "+= is not allowed" as synonymous to "is immutable".
>>> a = (1,2)
>>> a += (3, 4)
>>> a
(1, 2, 3, 4)
By this definition, tuples are not immutable. That would be
nonstandard terminology.
I think you've confused "mutability" of variables (more clearly:
rebindability) with mutability of objects.
-- Devin
More information about the Python-ideas
mailing list