[issue5567] Operators in operator module don't work with keyword arguments

2009-04-01 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Sorry, it makes no sense to me to add keyword arguments everywhere just to accommodate partial(). The alternative using lambda is workable and there have been proposals to further build-out partial. I acknowledge your

[issue5567] Operators in operator module don't work with keyword arguments

2009-03-26 Thread Marek Kubica
New submission from Marek Kubica ma...@xivilization.net: When calling operators from the ``operator``-module, they refuse to accept keyword arguments: operator.add(a=1, b=2) TypeError: add() takes no keyword arguments Operators with keyword arguments are important when one wants to create

[issue5567] Operators in operator module don't work with keyword arguments

2009-03-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5567 ___ ___ Python-bugs-list mailing

[issue5567] Operators in operator module don't work with keyword arguments

2009-03-26 Thread Marek Kubica
Marek Kubica ma...@xivilization.net added the comment: Well, some Schemes have an CURRYR variant which creates partial functions with positional arguments from the right but the current solution with partial accepting keywords is way more flexible since I can pre-set any arguments I like in such