Status: Accepted
Owner: asmeurer
Labels: Type-Defect Priority-Medium Assumptions
New issue 1976 by asmeurer: Add is_one attribute to Basic (or Expr)
http://code.google.com/p/sympy/issues/detail?id=1976
This would make it consistent with the Polys:
In [14]: Poly(1, x).is_one
Out[14]: True
In [15]: S(1).is_one
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/Users/aaronmeurer/Documents/python/sympy/sympy/<ipython console> in
<module>()
AttributeError: 'One' object has no attribute 'is_one'
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.