Re: [Python-Dev] Another Anonymous Block Proposal

2005-04-27 Thread Jason Diamond
Paul Svensson wrote: You're not mentioning scopes of local variables, which seems to be the issue where most of the previous proposals lose their balance between hairy and pointless... My syntax is just sugar for nested defs. I assumed the scopes of local variables would be identical when using

[Python-Dev] Another Anonymous Block Proposal

2005-04-27 Thread Jason Diamond
Hi. I hope you don't mind another proposal. Please feel free to tear it apart. A limitation of both Ruby's block syntax and the new PEP 340 syntax is the fact that they don't allow you to pass in more than a single anonymous block parameter. If Python's going to add anonymous blocks, shouldn't i