On Mon, May 13, 2013 at 8:03 PM, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
I'd like to propose something a bit different:


   def name as expr(arg, ...)

Note that in the current uses of "as" the assignment target is on the right:

with expr as name:

import pkg.mod as name

I am not sure "def expr(...) as name" is any better than Greg's original proposal, though.