[Python-ideas] Dict-like object with property access

Eric Smith eric at trueblade.com
Tue Jan 31 15:31:50 CET 2012


> About the only variant of the idea that I *could* get behind these
> days is a collections.record class factory that was basically a
> variant of collections.namedtuple that produced mutable objects
> instead of tuples.

There are many of these. My own http://pypi.python.org/pypi/recordtype is
one such. It's primary use cases are:
- mutability
- default values
Eric.


More information about the Python-ideas mailing list

AltStyle によって変換されたページ (->オリジナル) /