Skip to content

Relational operators always evaluate to True when cast to bool #312

@mlangiu

Description

@mlangiu

With the current version of symengine (symengine-0.6.0) the following returns True

import symengine as se

x = se.S('x')
expr = se.Eq(x, 0)
print(bool(expr))

The outcome I expected was a TypeError as in sympy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions