dicts vs classes

Simon Hibbs simon.hibbs at gmail.com
Tue Jul 25 07:10:14 EDT 2006


I'm wondering about whether to use objects in this way or dictionaries
for a program I'm writing at the moment. It seems to me that unless you
need some of the functionality supplied with dictionaries (len(a),
has_key, etc) then simple objects are a syntacticaly cleaner and more
natural way to express yourself.

Any objctions to this, or pitfalls?

Simon Hibbs




More information about the Python-list mailing list