Comment #3 on issue 1558 by smichr: NumberSymbol not recognized as a filter
for atoms() and I has only type Atom
http://code.google.com/p/sympy/issues/detail?id=1558
Neither I nor zoo derive from NumberSymbol, they derive from Atom. If you
make I
derive from NumberSymbo, then tests involving comparisions start to
generate infinite
recursion. However, NumberSymbol could still be imported as a valid atoms
argument by
importing it in core/__init__.py
Also, when supplying types for atoms(), if you put an implicit type before
other
valid types only that type of object will be returned.
Then attached patch imports NumberSymbol to core; fixes the problem with
atoms() when
an implicit type is listed first, expands significantly the atoms
docstring, and adds
a test.
No tests fail.
/c
Attachments:
0001-atoms-and-numbersymbol-update.patch 5.5 KB
--
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
-~----------~----~----~----~------~----~------~--~---