[Python-Dev] The role of NotImplemented: What is it for and when should it be used? (original) (raw)
Guido van Rossum guido at python.org
Mon Nov 3 21:06:08 CET 2014
- Previous message: [Python-Dev] The role of NotImplemented: What is it for and when should it be used?
- Next message: [Python-Dev] The role of NotImplemented: What is it for and when should it be used?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message: [Python-Dev] The role of NotImplemented: What is it for and when should it be used?
- Next message: [Python-Dev] The role of NotImplemented: What is it for and when should it be used?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]