Result of ``a is b''

Andrew Koenig ark at acm.org
Wed Mar 17 17:01:55 EST 2004


"Terry Reedy" <tjreedy at udel.edu> wrote in message
news:mailman.97.1079541755.742.python-list at python.org...

> Deducing details of the implementation *is*, for people with a certain
> curiosity, a legitimate usage, in spite of your distain for such.
> Explaining the bahavior of
>
> a=[1]
> b=a
> a[0]=2
> print b
>
> is another use for 'is'.

Lists are mutable, so there's no proposal to change the behavior of "is" in
this context.





More information about the Python-list mailing list