which "dictionary with attribute-style access"?
Rhodri James
rhodri at wildebst.demon.co.uk
Mon Oct 12 17:41:25 EDT 2009
On Mon, 12 Oct 2009 20:58:35 +0100, Andreas Balogh <baloand at gmail.com>
wrote:
> Hello,
>
> googling I found several ways of implementing a "dictionary with
> attribute-style access".
>
> 1. ActiveState cookbook: http://code.activestate.com/recipes/473786/
>
> 2. ActiveState cookbook:
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/361668
>
> 3. web2py codebase: Storage(dict)
>
> I enclosed the three implementations below.
>
> My question to the Python specialists: which one is the most correct?
Accessing the dictionary as a dictionary.
--
Rhodri James *-* Wildebeest Herder to the Masses
More information about the Python-list
mailing list