Skip to content

[BUG] support __ror__ in C Extension #71

@Marco-Sulla

Description

@Marco-Sulla

Current behavior:

Python 3.10.2 (tags/v3.10.2-dirty:a58ebcc701, Jan 15 2022, 19:15:56) [GCC 10.1.1 20200718] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import frozendict
>>> frozendict.c_ext
True
>>> from frozendict import frozendict as f
>>> f1 = f({1:2})
>>> {2:3} | f1
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for |: 'dict' and 'frozendict.frozendict'

Expected:

>>> {2:3} | f1
{2: 3, 1: 2}

as with pure py version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Effort: MediumHow to waste a beautiful weekendPriority: LowNot a big problem...Type: BugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions