Atm there's a little known piece of AST magic in Chameleon (affecting
all implementations): it makes attribute-access (__getattr__) fall
back to dictionary acces (__getitem__).
So that's magic; it was invented in the very early stages of the
compiler and never really evaluated upon––I've later
Chris Rossi wrote:
While I think you're probably right, I know for a fact there are plenty
of templates in the wild that assume you can use attribute syntax for
dictionary lookup. At least on the stuff I'm working on.
Maybe add deprecation warnings to the next release and actually yank it
On Fri, May 15, 2009 at 11:36 AM, Malthe Borch mbo...@gmail.com wrote:
2009/5/15 Chris Rossi ch...@archimedeanco.com:
While I think you're probably right, I know for a fact there are plenty
of
templates in the wild that assume you can use attribute syntax for
dictionary lookup. At least