[issue5567] Operators in operator module don't work with keyword arguments
Raymond Hettinger
report at bugs.python.org
Wed Apr 1 23:03:57 CEST 2009
Raymond Hettinger <rhettinger at 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 distaste for lambda but it is firmly a part of the language and we
aren't compelled to have to provide an alternative formulation for every
possible lambda use case. In the case of the operator module, many of
the functions do not have a natural set of names and so they should
remain nameless -- there is not reason to prefer add(a,b) over add(p,q)
or add(i,j) or add(x,y) -- none of those add any explanatory value to
the reader and are fluff at best and hazardous at worst (for
non-commutative binary operations when a letter can be reasonably
assumed to be either of the two arguments).
----------
resolution: -> rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5567>
_______________________________________
More information about the Python-bugs-list
mailing list