simonpercivall / orderedset

Ordered Set implementation in Cython
Other
74 stars 14 forks source link

Segmentation fault when unioned with a set #30

Open WillDaSilva opened 3 years ago

WillDaSilva commented 3 years ago

Installed orderedset 2.0.3 from pip with Cython 3.0a7

Running on Linux Mint

Python version 3.9.5

>>> s = OrderedSet([1, 2, 3])
>>> s | {4, 5, 6} # this works fine
OrderedSet([1, 2, 3, 4, 5, 6])
>>> {4, 5, 6} | s # causes a segfault
Segmentation fault (core dumped)

Maybe this has to do with the changes in Cython 3.0 around arithmetic methods?