[Python-Dev] The role of NotImplemented: What is it for and when should it be used?
Guido van Rossum
guido at python.org
Mon Nov 3 21:06:08 CET 2014
Sounds good!
On Mon, Nov 3, 2014 at 11:33 AM, Ethan Furman <ethan at stoneleaf.us> wrote:
> Summary:
>
> NotImplemented _should_ be used by the normal and reflected binary methods
> (__lt__, __add__, __xor__, __rsub__, etc.)
>
> NotImplemented _may_ be used by the in-place binary methods (__iadd__,
> __ixor__, etc.), but the in-place methods are also free to raise an
> exception.
>
> Correct?
>
> --
> ~Ethan~
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/
> guido%40python.org
>
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20141103/e35165a7/attachment.html>
More information about the Python-Dev
mailing list