[Python-Dev] Extended Function syntax
Roman Suzi
rnd@onego.ru
Fri, 31 Jan 2003 18:18:41 +0300 (MSK)
On Thu, 30 Jan 2003, Brett Cannon wrote:
>[Guido van Rossum]
>
>> What's still missing is a way to add formal parameters to the thunk --
>> I presume that J and K are evaluated before interface.interface is
>> called. The thunk syntax could be extended to allow this; maybe this
>> can too. E.g.:
>>
>> e:(x, y):
>> S
>>
>
>Would something along the lines of::
>
> foo = e(x,y)::
> S
What about:
foo = e:
: x,y
S
?
Or something like above but with some keyword:
foo = e:
with x,y
S
or
foo = e:
for x,y
S
(where 'with' or 'for' are like global)
Any other thing in the same line with "foo = e" are not nice, IMHO.
Sincerely yours, Roman Suzi
--
rnd@onego.ru =\= My AI powered by Linux RedHat 7.3