trictionary?

Adam Tomjack adamtj at adamtj.org
Sun Aug 28 19:34:37 EDT 2005


Steven Bethard wrote:
...
> Using a two element list to store a pair of counts has 
> a bad code smell to me.
...

Why is that?  It strikes me as the cleanest way to solve that problem, 
as long as it's easy enough to figure out what each element really 
represents.  You could name each element, but for a block of code eight 
lines long, doing anything more descriptive would be too verbose.

Adam




More information about the Python-list mailing list