2 ms·
Saw the fix, thanks! Was it also unintentional that instances of classes, after they have been converted to communism, compare equal with anything whatever, an
by pdonis 5y ago
Saw the fix, thanks!
Was it also unintentional that instances of classes, after they have been converted to communism, compare equal with anything whatever, and hash equal to the integer 1 and the boolean True?
>>> import communism
>>> class MyClass1:
... pass
...
>>> class MyClass2:
... pass
...
>>> communism.revolution(globals())
>>> MyClass1() == None
True
>>> set((MyClass1(), MyClass2(), 1, True))
{<__main__.MyClass1 object at 0x7f8f3532a820>}
>>>