Skip to content

Expanding the reflected arithmetic section #35

Closed
@william-ml-leslie

Description

The reflected arithmetic section doesn't explain why I'd want to define reflected arithmetic operators (to make things like 5 + my_object work without redefining int.add, because it's not possible) nor under what conditions they are called (the object on the left must either not define the method or return NotImplemented from the method).

I've got a bit of trouble working this into the English of the section.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions