[Python-3000] upon

Nick Coghlan ncoghlan at gmail.com
Sat Nov 18 02:24:41 CET 2006


Talin wrote:
> Hmmm, a single syntax that handles both async callbacks, async errors, 
> and switch/case constructs...maybe this would be more useful than I 
> thought ... :)
> 
> Now, can we figure out how to handle arguments to the code block...?

PEP 343 already gives you an answer to this question :)

Cheers,
Nick.

P.S. I'm not saying I agree with the idea. As Paul pointed out, it doesn't let 
you do anything you can't do with a function definition and an appropriate 
decorator (particularly once the nonlocal PEP goes through).

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list