Skip to content

radd not working with tuples #1475

@slozier

Description

@slozier

Works properly in 2.7...

class test:
  def __radd__(self, other):
    return other + (1,)

assert (3,2) + test() == (3,2,1)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions