Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-25 Thread sympy
Updates: Labels: -NeedsReview Comment #8 on issue 1902 by Vinzent.Steinberg: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 (No comment was entered for this change.) -- You received this message because you are listed in th

Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-25 Thread sympy
Updates: Status: Fixed Comment #7 on issue 1902 by Vinzent.Steinberg: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 I pushed it in, thanks. -- You received this message because you are listed in the owner or CC fields of t

Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-22 Thread sympy
Comment #6 on issue 1902 by smichr: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 Sorry, Raffaele, you are right. I've never worked with that aspect of has (or with the option to look for a pattern). Regarding the efficiency, y

Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-19 Thread sympy
Comment #5 on issue 1902 by Vinzent.Steinberg: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 I think this should work with Symbol() and Wild() too, for consistency's sake. -- You received this message because you are listed in

Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-19 Thread sympy
Comment #4 on issue 1902 by alberthilbert: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 From what I can see from source code, 'has' method accepts 'BasicType' object as parameter and return 'True' if 'self' contains some instanc

Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-19 Thread sympy
Comment #3 on issue 1902 by smichr: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 Perhaps you are confusing atoms() with has(). has() is suppose to look for patterns while atoms() will give sub-expressions of a given type (and it

Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-15 Thread sympy
Updates: Labels: NeedsReview Comment #2 on issue 1902 by asmeurer: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 (No comment was entered for this change.) -- You received this message because you are listed in the owner or

Re: Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-15 Thread sympy
Comment #1 on issue 1902 by alberthilbert: 'has' method fails when argument is 'Symbol' or 'Wild' http://code.google.com/p/sympy/issues/detail?id=1902 The attached patch should solve that problem. ...at least I hope so! ;) Raffaele Attachments: has_method.patch 2.2 KB -- You recei

Issue 1902 in sympy: 'has' method fails when argument is 'Symbol' or 'Wild'

2010-04-15 Thread sympy
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 =