syntax for code blocks

Temia Eszteri lamialily at cleverpun.com
Sun Apr 29 12:32:59 EDT 2012


>> Current Syntax:
>>
>>      with res << func(arg1) << 'x, y':
>>          print(x, y)
>>
>>      with res << func(arg1) << block_name << 'x, y':
>>          print(x, y)
>>
>> New Syntax:
>>
>>      with res == func(arg1) .taking_block (x, y):
>>          print(x, y)
>>
>>      with res == func(arg1) .taking_block (x, y) as block_name:
>>          print(x, y)
>[snip]
>
>Hey, guys, am I the only one here who can't even guess what
>this code does?  When did Python become so obscure?
>
>-- 
>To email me, substitute nowhere->spamcop, invalid->net.

No, it's pretty impenetratable to me at a passing glance too. Not sure
if I'd get anywhere handtracing it, though.

~Temia
--
When on earth, do as the earthlings do.



More information about the Python-list mailing list