> Just curious: Is there a reason to use __getitem__() over itemgetter (used 
> in the example in my reply)?

__getitem__ is a method builtin to a dict object. itemgetter 1) has to be 
imported 2) is more generically used, therefore probably using a more 
generic/slower algorithm

JS 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to