purcell / airspeed

A lightweight Python template engine compatible with Velocity, used in OpenStack
Other
91 stars 37 forks source link

Prefer dict items over built-in methods #32

Closed shmygol closed 5 years ago

shmygol commented 5 years ago

Currently it's not possible to use keys like 'items' in dictionaries (maps), because it has a method items. I'd suggest to prefer dictionary items over methods in case they collide.

purcell commented 5 years ago

Yep, that would probably make sense. Would you mind writing a quick test case and I'll see if I can fix it when time allows?

purcell commented 5 years ago

LOL, ignore me -- just saw your PR #33 now. :-)