[issue12548] Add suport native Functor

2011-07-14 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12548] Add suport native Functor

2011-07-14 Thread Ezio Melotti
Ezio Melotti 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 changing the actual Python syn

[issue12548] Add suport native Functor

2011-07-14 Thread yuriy_levchenko
yuriy_levchenko 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 partial(fn, *args, **kw). The @ sign is u

[issue12548] Add suport native Functor

2011-07-13 Thread Ezio Melotti
Ezio Melotti 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. [0]: http://docs.python.

[issue12548] Add suport native Functor

2011-07-13 Thread yura levchenko
New submission from yura levchenko : 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 title: Add suport native Functor type: feat