> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
> Behalf Of Beni Cherniavsky
> 
> I think teaching students to actively detest code that with huge redudant
> repetitive piles of redudancy repeated all over is more important than
> teaching them any single guideline.  

<Snip>

> Rule of thumb: use tuples where you typically change all members together.
> Use mutable objects (lists/dicts/objects with attrs) where you frequently
> change individual members.

The tuple/list distinction is a recurring question on python-list - people
trying to understand in what way the 2 structures are not redundant. This
comes up repeatedly ;) 

I find your formulation more satisfying than anything I've come a cross
before.

Art



_______________________________________________
Edu-sig mailing list
Edu-sig@python.org
http://mail.python.org/mailman/listinfo/edu-sig

Reply via email to