list.clear() missing?!?
Ville Vainio
vivainio at gmail.com
Tue Apr 11 17:49:04 EDT 2006
John Salerno wrote:
> Thanks guys, your explanations are really helpful. I think what had me
> confused at first was my understanding of what L[:] does on either side
> of the assignment operator. On the left, it just chooses those elements
> and edits them in place; on the right, it makes a copy of that list,
> right? (Which I guess is still more or less *doing* the same thing, just
> for different purposes)
Interestingly, if it was just a "clear" method nobody would be confused.
More information about the Python-list
mailing list