syntax for code blocks
Peter Pearson
ppearson at nowhere.invalid
Sun Apr 29 12:05:47 EDT 2012
On Fri, 27 Apr 2012 13:24:35 +0200, Kiuhnm <kiuhnm03.4t.yahoo.it> wrote:
> I'd like to change the syntax of my module 'codeblocks' to make it more
> pythonic.
>
> 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.
More information about the Python-list
mailing list