Zachary Ware added the comment:
With no one (including me) clamoring for this, I'm going to go ahead and reject
it. If someone in the future does really want this, I'd be happy to review a
new patch.
--
resolution: - rejected
stage: - resolved
status: open - closed
versions:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18436
___
___
Changes by Chris Rebert pyb...@rebertia.com:
--
nosy: +cvrebert
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18436
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
What is a purpose of this feature? Why you need it?
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18436
___
Zachary Ware added the comment:
The purpose is to make usage of the operator module more readable, particularly
for some of the more exotic operators. For instance, I find
``operator.get_op(=)`` to be a lot more obvious about what's going to
happen than ``operator.irshift``.
Also, I think
Nick Coghlan added the comment:
I liked Ron's suggestion of using it to improve the output of help() (by
getting access to the docstrings of the operator functions, and then enhancing
those to be a bit more informative)
--
___
Python tracker
Ron Adam added the comment:
Regarding opertor.get_op:
Look at help(symbols) output for consistancy. There may be items in one that
can be included in the other.
The operator.get_op addition would be useful for improving help on the symbol
information for help/pydoc. Currently it seems
New submission from Zachary Ware:
In a thread on python-ideas[1], Nick mentioned the idea of
``operator.by_symbol['+=']`` which would be an alternative method of getting
the operator.iadd function. The idea struck my fancy, so I implemented it
(regardless of the very real possibility of
Éric Araujo added the comment:
Added some comments on Rietveld.
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18436
___
___