yuriy_levchenko levchenko.yuriy.vladimirov...@gmail.com added the comment:
http://www.python.org/dev/peps/pep-0309/#note
Abandoned Syntax Proposal
I originally suggested the syntax fn@(*args, **kw), meaning the same as
Ezio Melotti ezio.melo...@gmail.com added the comment:
Using the func%(args) syntax is not possible because
fab = foo%(1,2)
is equivalent to
fab = foo.__mod__((1,2))
It might actually be possible to overload the % operator to make something that
looks like your proposed syntax (without
Changes by R. David Murray rdmur...@bitdance.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12548
___
___
New submission from yura levchenko levchenko.yuriy.vladimirov...@gmail.com:
sample:
def foo(a,b):
print a,b
foo(1,2)
fa = foo%(1)
fa(2)
fab = foo%(1,2)
fab()
result
12
12
12
--
components: None
messages: 140239
nosy: yura.levchenko
priority: normal
severity: normal
status: open
Ezio Melotti ezio.melo...@gmail.com added the comment:
It's not entirely clear to me what you are proposing, but it looks like
functools.partial[0]. Whatever it is, adding new syntax especially for it
sounds highly unlikely. You might want to propose and discuss it on
python-ideas though.