python3: 'where' keyword

Nick Coghlan ncoghlan at iinet.net.au
Sun Jan 9 06:20:20 EST 2005


Alex Martelli wrote:
> I wonder if 'with', which GvR is already on record as wanting to
> introduce in 3.0, might not be overloaded instead.

Perhaps we could steal 'using' from the rejected decorator syntax.

x = [f(x) for x in seq] using:
   def f(x):
     return x * x

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net



More information about the Python-list mailing list