[portland] Seeking opinions on choosing data types: dictionary or instance attributes?
kirby.urner at gmail.com
Tue Nov 27 22:30:44 CET 2007
On Nov 27, 2007 12:23 PM, <ray at bme.ogi.edu> wrote:
<< SNIP >>
> Any advice or guidelines? Are there any disadvantages to using all
> these dictionaries?
> Thank you,
Just off the top, having trouble seeing how multiple instances
gets you off the hook from still needing top level collection types,
i.e. lists and/or dicts.
Another way of looking at the problem is what kind of bulk
updates will you be doing. I sure like list comprehensions for
It's very possible to have ungainly classes *and* dictionaries
i.e. neither design need be any good if there's not enough
Remember from 'import this': Flat is better than nested.
More information about the Portland