So, after a brief discussion on #python about why not to use locals, I was pondering about what would be a better way without the repetitive nature (i.e. not DRY) of dict(foo=foo,bar=bar)
(or the same using the literal syntax ({}
)).
Ideally, a PEP could be submitted (or one already exists) that mirrors this ecmascript harmony proposal. (I want to promote emphasis on the DRY aspect that it conveys).
So, do you have any solutions? Should I submit a PEP?