Comment #5 on issue 1823 by smichr: integral.atoms(Symbol) should introspect
http://code.google.com/p/sympy/issues/detail?id=1823
<<<in response to comment 1, I posted by email but I guess google doesn't
xfer it to
the list and it got lost. >>>
[email protected] wrote:
Comment #1 on issue 1823 by Vinzent.Steinberg: integral.atoms(Symbol)
should introspect
http://code.google.com/p/sympy/issues/detail?id=1823
if 'Integral' in str(type(expr)) and (
type(typ) not in (list, tuple, set) and
typ.is_Symbol or typ is Symbol or 'Symbol' in str(typ)):
I'm not sure if this is to much magic. And the checks seem quite
redundant, at least
"typ.is_Symbol" and "typ is Symbol". Why the str(...) checks?
oops...but there is still the hackish check for a string in a string because
when someone calls like this,
Integral(x).atoms(Symbol)
I need a way to know that "Symbol" was passed. I don't know how to do that.
isinstance(Symbol('x'), Symbol) is True, but
isinstance(Symbol, Symbol) is not True since Symbol is a class
branch repushed.
/c
--
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.