Alternate Syntax for dictionary elements
Graham Ashton
graham at coms.com
Wed Jul 4 03:42:35 EDT 2001
In article <3b421cec.5073656 at news.t-online.de>, "Gerson Kurz"
<gerson.kurz at t-online.de> wrote:
> 2 reasons for using dicts rather than classes:
>
> - You can easily create the data an object stores *dynamically*, i.e.
> from user input.
What can you do dynamically with a dictionary that you can't do with
setattr() and getattr()? (that's a real question, not a cocky way of
pointing out you might have missed something)
--
Graham
More information about the Python-list
mailing list