An oddity in list comparison and element assignment
Terry Reedy
tjreedy at udel.edu
Fri Jun 2 14:33:44 EDT 2006
"Aahz" <aahz at pythoncraft.com> wrote in message
news:e5pr7u$3g0$1 at panix3.panix.com...
> Except, of course, that BofA doesn't exist anymore. Oh, the *name*
> does, but what's now called BofA is simply the current name of the bank
> that acquired BofA.
In Pythonese, they performed
SomeBank.extend(BofA)
BofA = SomeBank
del SomeBank
so that id(BofA) is now what id(SomeBank) was, not what was id(the BofA I
grew up with). The name was definitely part of of the acquisition value.
;-)
OT, but not completely irrelevant to a discussion of names, ids, and
values.
Terry Jan Reedy
More information about the Python-list
mailing list