[Simple-cdd-devel] Python modules
Enrico Zini
enrico at enricozini.org
Wed Feb 18 11:10:47 UTC 2015
On Tue, Jan 27, 2015 at 08:16:35PM +0100, Enrico Zini wrote:
> I'm tempted to implement __getattr__/__setattr__ magic in Environment so
> that instead of env.get("MIRROR") we can just do env.MIRROR. That is the
> only remaining refactoring idea that I still have, and it has been
> kindly suggested by my typing wrists.
I have now experimentally done this.
env.get("var") can now be also written as env.var
env.set("var", val) can now be also written as env.var = val
Today I'm working with simple-cdd, so I should be able to see if
anything breaks.
Enrico
--
GPG key: 4096R/E7AD5568 2009-05-08 Enrico Zini <enrico at enricozini.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/simple-cdd-devel/attachments/20150218/85dd45c3/attachment.sig>
More information about the Simple-cdd-devel
mailing list