Give * operator "deep copy"
Raymond Hettinger
python at rcn.com
Wed Sep 1 15:18:01 EDT 2004
[Terry Reedy]
> 3. the mistake of taking 'container' too literally. Tuples and lists are
> like rosters, not rooms. A student can only be in one room (at a time) but
> can simultaneously be on the roster of multiples classes and clubs. If,
> for example, a student gets an honor, then every class and club
> 'containing' that student now 'contains' an honored member. What rosters
> actually contain are some sort of identifier for each student, not the
> students themselves.
This is an excellent metaphor.
I vote the second line as the QOTW.
Raymond
More information about the Python-list
mailing list