Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1902 by alberthilbert: 'has' method fails when argument is 'Symbol' or 'Wild'
http://code.google.com/p/sympy/issues/detail?id=1902

'has' method fails when argument is 'Symbol' or 'Wild'.
For example the following code:

x = Symbol('x')
x.has(Symbol)

produces:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/pymodules/python2.6/sympy/core/basic.py", line 1310, in has
    return p in self.atoms(p.func)
File "/usr/lib/pymodules/python2.6/sympy/core/basic.py", line 858, in atoms
    return set(_atoms(self, typ=types))
File "/usr/lib/pymodules/python2.6/sympy/core/basic.py", line 842, in _atoms
    if isinstance(expr, t): return [expr]
TypeError: isinstance() arg 2 must be a class, type, or tuple of classes
and types

Raffaele

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--
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.

Reply via email to