Reputation: 654
I have a short question:
is such statement:
a.append(x)
x is a[-1]
always true?
a
is a list, x
can be anything (but I am particularly interested in big integers)
Upvotes: 0
Views: 22
Reputation: 6438
In single thread yes, they are exactly the same even the references. For multiple threads not always: a
could be changed by other threads.
Upvotes: 1