[Python-Dev] In-place operators

Benjamin Peterson benjamin at python.org
Tue Mar 17 22:54:51 CET 2009


2009/3/17 Raymond Hettinger <python at rcn.com>:
> 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.



-- 
Regards,
Benjamin


More information about the Python-Dev mailing list