Re: Issue 2032 in sympy: Ability to work with K[x, 1/x] in Polys

2010-12-20 Thread sympy
Comment #10 on issue 2032 by asmeurer: Ability to work with K[x, 1/x] in Polys http://code.google.com/p/sympy/issues/detail?id=2032 Well, it turns out that there are two bugs with the code I gave in the last comment. The first is actually a bug in Poly.slice (see

Re: Issue 2084 in sympy: limit(1+1/x, x, 0, dir='-') fails

2010-12-20 Thread sympy
Comment #42 on issue 2084 by nicolas.pourcelot: limit(1+1/x, x, 0, dir='-') fails http://code.google.com/p/sympy/issues/detail?id=2084 The point is, commits content itself as displayed in Github has not change since November, despite smichr/2084 having change at least twice since... Btw,

Re: Issue 2084 in sympy: limit(1+1/x, x, 0, dir='-') fails

2010-12-20 Thread sympy
Comment #43 on issue 2084 by smichr: limit(1+1/x, x, 0, dir='-') fails http://code.google.com/p/sympy/issues/detail?id=2084 Maybe a new pull request is generated when the code is rebased? -- You received this message because you are subscribed to the Google Groups sympy-issues group. To post

Re: Issue 1947 in sympy: @property methods are not doctested

2010-12-20 Thread sympy
Comment #4 on issue 1947 by nicolas.pourcelot: @property methods are not doctested http://code.google.com/p/sympy/issues/detail?id=1947 Concerning doctests, I noticed the following (see issue 1923, comment 30). Such a docstring will not be tested by ./bin/doctest: def my_func(*args, **kw):

Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Status: Accepted Owner: nicolas.pourcelot CC: Vinzent.Steinberg, asmeurer, smichr Labels: Type-Defect Priority-Medium New issue 2125 by nicolas.pourcelot: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 I'd like to be able to use sympy Integers everywhere

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Comment #2 on issue 2125 by asmeurer: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 Similar is issue 1838. Regarding S(2)*'1', this definitely should not return S(2). See the discussion at

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Comment #3 on issue 2125 by nicolas.pourcelot: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 (though you might have to implement it manually, like in issue 1838, if the Python object doesn't handle rmul on its own) Once __index__() method is added,

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Comment #4 on issue 2125 by asmeurer: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 Interesting. What exactly does this __index__() method do? Does it just return int(self)? -- You received this message because you are subscribed to the Google

Re: Issue 1838 in sympy: Add support for [0]*S(5), etc.

2010-12-20 Thread sympy
Updates: Blockedon: 2125 Comment #8 on issue 1838 by asmeurer: Add support for [0]*S(5), etc. http://code.google.com/p/sympy/issues/detail?id=1838 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google Groups sympy-issues group.

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Issue 2125: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 This issue is now blocking issue 1838. See http://code.google.com/p/sympy/issues/detail?id=1838 -- You received this message because you are listed in the owner or CC fields of this issue, or

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Updates: Labels: NeedsReview Comment #5 on issue 2125 by nicolas.pourcelot: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 Yes. :) Here is a tiny patch for review. It implements this functionality for Python 2.5+. (Since it isn't a core

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Comment #6 on issue 2125 by asmeurer: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 There's no point in testing it five times in Python 2.5+, so I would move the for loop into the else block. As long as sympy still runs and test still pass in Python

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Comment #7 on issue 2125 by smichr: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 I'm -1 on this. If this is allowed it means that we will lose the ability to do sympy things with the Integers, like vector multiplication (should that ever gain a

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Comment #8 on issue 2125 by asmeurer: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 I agree with Nicolas in the OP. I think if we want to allow something like vector multiplication, we should create our own Vector class. There is much more benefit

Issue 2126 in sympy: fix doctest or quality testing to recognize doctests

2010-12-20 Thread sympy
Status: Accepted Owner: smichr Labels: Type-Defect Priority-Medium New issue 2126 by smichr: fix doctest or quality testing to recognize doctests http://code.google.com/p/sympy/issues/detail?id=2126 In recent work it was found that tests that appeared as A comment and then the example:

Re: Issue 2122 in sympy: misplaced lseries code

2010-12-20 Thread sympy
Updates: Labels: -NeedsReview Comment #1 on issue 2122 by smichr: misplaced lseries code http://code.google.com/p/sympy/issues/detail?id=2122 this is now part of branch 2124 -- You received this message because you are subscribed to the Google Groups sympy-issues group. To post to

Re: Issue 2124 in sympy: cos(x).series(x) gives same result as cos(x).series(x, 1)

2010-12-20 Thread sympy
Updates: Labels: NeedsReview Comment #1 on issue 2124 by smichr: cos(x).series(x) gives same result as cos(x).series(x, 1) http://code.google.com/p/sympy/issues/detail?id=2124 A pull request has been made: https://github.com/sympy/sympy/pull/48 -- You received this message because

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Comment #9 on issue 2125 by smichr: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 I see that it must have some smarts about when to and when not to return an int because a=S(1); b = S(2); a/b gives 1/2, not 0. Are we ever going to be bitten by a

Re: Issue 2126 in sympy: fix doctest or quality testing to recognize doctests

2010-12-20 Thread sympy
Updates: Labels: -Priority-Medium Priority-Critical Milestone-Release0.7.0 Comment #1 on issue 2126 by asmeurer: fix doctest or quality testing to recognize doctests http://code.google.com/p/sympy/issues/detail?id=2126 There's no reason that the doctester shouldn't be able to

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Updates: Cc: ondrej.certik Ronan.Lamy Comment #10 on issue 2125 by asmeurer: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 I think the whole point of using SymPy Integers instead of Python ints is that you *can* do something like 1/2 and get a

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Comment #11 on issue 2125 by nicolas.pourcelot: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 a=S(1); b = S(2); a/b gives 1/2, not 0. In Python 3.x, 1/2 will return 0.5, and in Python 2.x, from future import __truediv__ is already widely used imo.

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Comment #12 on issue 2125 by nicolas.pourcelot: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 a=S(1); b = S(2); a/b gives 1/2, not 0. In Python 3.x, 1/2 will return 0.5, and in Python 2.x, from future import __truediv__ is already widely used imo.

Re: Issue 2125 in sympy: Using Integers as python slices.

2010-12-20 Thread sympy
Comment #13 on issue 2125 by nicolas.pourcelot: Using Integers as python slices. http://code.google.com/p/sympy/issues/detail?id=2125 Note that you can implement __index__ method, and still keep a special case concerning lists: class Two(object): def __int__(self):