[Python-Dev] redefining is

Tim Peters tim.one at comcast.net
Tue Mar 23 21:10:44 EST 2004


[Shane Hathaway]
> As I understood it, 'b' and 'c' are supposed to be substitutable in
> the following example, since 'b' and 'c' will have the same value
> even after 'a' changes:
>
> a = []
> b = (a,)
> c = (a,)

Fair enough.  Do interesting/valuable use cases appear then?



More information about the Python-Dev mailing list