is this pythonic?

TP Tribulations at Paralleles.invalid
Thu Jan 22 14:32:00 CET 2009

Peter Otten wrote:

> If you can change the rest of your program to work smoothly with a
> dictionary I would suggest the following:
>>> from collections import defaultdict

Thanks a lot.
I didn't know defaultdict. It is powerful.

I begin to understand that people prefer using dictionaries than lists, so
as to take advantage of their automatic lookup feature.

python -c "print ''.join([chr(154 - ord(c)) for c in '*9(9&(18%.\

"When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something is
impossible, he is very probably wrong." (first law of AC Clarke)

More information about the Python-list mailing list