Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Shouldn't symengine.pi.is_Atom == True? #519

@bjodah

Description

@bjodah

I just noticed this:

>>> import symengine as se
>>> import sympy as sy
>>> {be.__name__: (be.pi.args, be.pi.is_Atom) for be in [sy, se]}
{'sympy': ((), True), 'symengine': ((), False)}

I think this is an oversight, no?

Number and Symbol have is_Atom set to True. Looking at the classhierarchy of pi:

>>> se.pi.__class__.__mro__
(symengine.lib.symengine_wrapper.Pi,
 symengine.lib.symengine_wrapper.Constant,
 symengine.lib.symengine_wrapper.Expr,
 symengine.lib.symengine_wrapper.Basic,
 object)

I guess Constant is a good candidate for setting is_Atom to True?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions