On May 2, 2016 11:46 AM, "Barry Warsaw" <barry@python.org> wrote:
>
> On May 02, 2016, at 04:25 PM, Robert van Geel wrote:
>
> >Django would break when the 'using' keyword would be used for that
>
> Not that it's super popular, but I'd hate to lose 'using' to a keyword too.
>
> http://flufli18n.readthedocs.io/en/latest/docs/using.html
I guess the obvious alternative would be
in namespace:
...
The pandas folks would love to have something like this actually, if it let you write
in some_table:
total_height = height_feet * 12 + height_inches
instead of the current
some_table["total_height"] = some_table["height_feet"] * 12 + some_table["height_inches"]
Of course this requires that the namespace be accessed via some kind of hookable interface, not just a built in object or dict.
-n