Skip to content

Breaking change in Record #533

@anuejn

Description

@anuejn

abbebf8 introduced a breaking change in Record:
Some (all?) operators are not overloaded on it anymore because they are looked up on the class rather than on the instance so __getattr__() doesnt forward them.

pre abbebf8:

>>> Record([("a", 1)])
(rec <unnamed> a)

post abbebf8:

>>> Record([("a", 1)]) + 1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'Record' and 'int'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions