python-dev
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [Python-Dev] In-place operators Guido van Rossum Tue Mar 17 15:01:35 2009
On Tue, Mar 17, 2009 at 2:54 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > 2009/3/17 Raymond Hettinger <[EMAIL PROTECTED]>: >> Does anyone think it was not a good idea to put in-place operations in the >> operator module? For some objects, they don't map() as well as their >> regular counterparts. Some in-place operations rely on the interpreter to >> take care of the actual assignment. I've not yet seen good use cases for >> operator.isub() for example. > > I thought the point of the operator module (unlike most modules) was > to provide a comprehensive set of Python operators as functions for > consistency even if there usefulness was questionable. Right. Since Python doesn't have a notation like "operator +" for turning operators into functions, the operator module provides this functionality. Better safe than sorry. -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-Dev mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/alexiscircle%40gmail.com
- [Python-Dev] In-place operators Raymond Hettinger
- Re: [Python-Dev] In-place operators Benjamin Peterson
- Re: [Python-Dev] In-place operators Guido van Rossum <=
- Re: [Python-Dev] In-place operators Raymond Hettinger
- Re: [Python-Dev] In-place operators Antoine Pitrou
- Re: [Python-Dev] In-place operators Martin v. Löwis
- Re: [Python-Dev] In-place operators Raymond Hettinger
- Re: [Python-Dev] In-place operators Martin v. Löwis
- Re: [Python-Dev] In-place operators Raymond Hettinger
- Re: [Python-Dev] In-place operators Nick Coghlan
- Message not available
- Re: [Python-Dev] In-place operators Hrvoje Niksic
Re: [Python-Dev] In-place operators Terry Reedy