The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: Kiuhnm <kiuhnm03.4t.yahoo.it>
Date: Fri, 27 Apr 2012 13:24:35 +0200
Local: Fri, Apr 27 2012 7:24 am
Subject: syntax for code blocks
I'd like to change the syntax of my module 'codeblocks' to make it more
pythonic. Current Syntax:
with res << func(arg1) << 'x, y':
with res << func(arg1) << block_name << 'x, y':
New Syntax:
with res == func(arg1) .taking_block (x, y):
with res == func(arg1) .taking_block (x, y) as block_name:
The full form is equivalent to
def anon_func(x, y):
Suggestions?
Kiuhnm
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||