[issue18436] Add mapping of symbol to function to operator module

2014-07-25 Thread Zachary Ware
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: +Pyt

[issue18436] Add mapping of symbol to function to operator module

2013-08-08 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue18436] Add mapping of symbol to function to operator module

2013-07-19 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue18436] Add mapping of symbol to function to operator module

2013-07-15 Thread Nick Coghlan
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

[issue18436] Add mapping of symbol to function to operator module

2013-07-15 Thread Zachary Ware
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 thin

[issue18436] Add mapping of symbol to function to operator module

2013-07-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is a purpose of this feature? Why you need it? -- nosy: +rhettinger ___ Python tracker ___ __

[issue18436] Add mapping of symbol to function to operator module

2013-07-14 Thread Ron Adam
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 over

[issue18436] Add mapping of symbol to function to operator module

2013-07-12 Thread Éric Araujo
Éric Araujo added the comment: Added some comments on Rietveld. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mail

[issue18436] Add mapping of symbol to function to operator module

2013-07-12 Thread Zachary Ware
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 being