bastikr / boolean.py

Implements boolean algebra in one module.
BSD 2-Clause "Simplified" License
76 stars 34 forks source link

Proper equivalence #78

Closed pombredanne closed 6 years ago

pombredanne commented 6 years ago

This is a fix for the cases where two expression where built from two different algebras and need to be compared (such as a comparing two simplified versions). I had add some weird type wrapping in the past for reasons I cannot fathom. These precluded any isinstance checks to work as new types were created each time. Removing this wart creates no issue and solves the problem, originally reported as part of https://github.com/nexB/license-expression/issues/21