Thanks very much for reporting this bug. This is what I get on Debian:
ondra@fuji:~/sympy$ python
Python 2.4.4 (#2, Aug 16 2007, 02:03:40)
[GCC 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from sympy import *
>>> x, y = symbols("xy")
>>> p = Wild("p")
>>> q = Wild("q")
>>> w=WildFunction('w',nofargs='1')
>>>
>>> ex=x**3*sin(y)
>>> ex.match(p**q*w)
{Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "sympy/core/basic_methods.py", line 335, in __repr__
return self.tostr()
File "sympy/core/function.py", line 377, in tostr
return self.name + '_'
File "sympy/core/basic_methods.py", line 267, in __getattr__
raise AttributeError("'%s' object has no attribute '%s'"%
AttributeError: 'WildFunction' object has no attribute 'name'
So clearly there is a bug in sympy, I'll try to fix it in the evening.
As to your SystemError, that I think is a bug in Python.
Ondrej
I created an issue for that:
http://code.google.com/p/sympy/issues/detail?id=487
you can watch progress on this problem. It works in isympy for me, but
it doesn't work in python. That's weird.
Ondrej