[Python-ideas] Shorthand syntax for get/set/delattr (was Re: Dict-like object with property access)

Paul Moore p.f.moore at gmail.com
Sun Feb 5 15:06:10 CET 2012


2012/2/5 Carl M. Johnson <cmjohnson.mailinglist at gmail.com>:
> It's not that hard to make something that basically works with properties:

Indeed...

> In a real module, you'd probably want to be more thorough about emulating a __dict__ dictionary though by adding item() and keys() etc.

... and precisely! The discussions so far have concentrated on the
"easy" side of things. Writing a working module would ensure that all
the corner cases get covered. And as a benefit, would provide an
implementation that could be taken straight into the core/stdlib,
hugely reducing the core developer effort that is otherwise needed to
take even the best thought out proposal into reality.

Paul.



More information about the Python-ideas mailing list