Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-06-17 Thread sympy
Status: Accepted Owner: smichr Labels: Type-Defect Priority-Medium New issue 1960 by smichr: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 Sorry if this is duplicating an issue (which I'm not able to find) but it was discussed

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-06-17 Thread sympy
Updates: Cc: Vinzent.Steinberg asmeurer Labels: NeedsReview Comment #1 on issue 1960 by smichr: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 branch 1960 at smichr's github account is ready for review. (Aaron, yo

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-06-17 Thread sympy
Updates: Labels: -NeedsReview NeedsBetterPatch Comment #2 on issue 1960 by asmeurer: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 It was issue 1948 (took me a while to find it too, actually). It looks there is a prob

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-06-17 Thread sympy
Comment #3 on issue 1960 by smichr: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 This is what it looks like in 1960 for me on windows: from sympy import * [Point(1,2)] [Point(1, 2)] [Point(Integer(10), Integer(2))] [Point(

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-06-17 Thread sympy
Updates: Labels: -NeedsBetterPatch NeedsReview Comment #4 on issue 1960 by smichr: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 After talking with Aaron on IRC, it appears that the Point'less tuple appearance is a ppr

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-06-17 Thread sympy
Updates: Labels: -NeedsReview PassedReview Comment #5 on issue 1960 by asmeurer: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 I am +1 on what's given, but I am not so sure about pprinting Point as a tuple. I can see

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-09-05 Thread sympy
Updates: Labels: smichr Comment #6 on issue 1960 by asmeurer: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-11-22 Thread sympy
Comment #7 on issue 1960 by smichr: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 Just as getting an integral sign rather than the word Integral is prettier, so is getting the conventional coordinate representation of a Point

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-11-23 Thread sympy
Comment #8 on issue 1960 by Vinzent.Steinberg: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 Well, I'm not sure. The integral sign is unambiguous, whereas a tuple is not. For example (1, 2) could be a point, a vector, a co

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-11-23 Thread sympy
Comment #9 on issue 1960 by smichr: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 This patch is not addressing the pprint issue. pprint'ing without this patch in master gives the Point'less representation, so please just ignor

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-11-24 Thread sympy
Updates: Labels: -PassedReview NeedsBetterPatch Comment #10 on issue 1960 by Vinzent.Steinberg: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 There is a problem: srepr(Line(Point(2, 2), Point(0, 10)).intersection(Line(P

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-11-24 Thread sympy
Comment #11 on issue 1960 by asmeurer: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 Wait, why is ok to break repr() but not srepr()? Actually, I'm not sure I really understand the subtle difference between the two. -- You

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-11-24 Thread sympy
Comment #12 on issue 1960 by Vinzent.Steinberg: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 I think in sympy we have repr() == str(), because str([...]) uses repr() to print all elements inside the list, which is usually not

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-11-24 Thread sympy
Comment #13 on issue 1960 by asmeurer: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 I see. I didn't realize that str(list) used repr(). By the way, that reminds me that we still have that srepr(sqrt(x)) == Pow(Symbol('x'),

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-11-24 Thread sympy
Comment #14 on issue 1960 by asmeurer: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 Actually, it's issue 1348, and Mateusz fixed it in his polys branch (af4c122689a31a1e8546b9bb73bbcb03578c6ada). -- You received this messag

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-11-24 Thread sympy
Updates: Labels: -NeedsBetterPatch Comment #15 on issue 1960 by smichr: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 OK, so it looks like the srepr issue is the show stopper. So shall we just close this issue? If you

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-12-14 Thread sympy
Comment #17 on issue 1960 by asmeurer: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 Concerning repr() vs. srepr(): So do we want to fix issue 1994? -- You received this message because you are subscribed to the Google Groups

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-12-15 Thread sympy
Comment #18 on issue 1960 by smichr: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 Based on comment 12 I would say yes. We shouldn't be getting a pprint representation. -- You received this message because you are subscribed

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2010-12-15 Thread sympy
Updates: Status: WontFix Comment #19 on issue 1960 by smichr: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 (No comment was entered for this change.) -- You received this message because you are subscribed to the Google

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2011-03-26 Thread sympy
Updates: Status: Accepted Comment #20 on issue 1960 by smi...@gmail.com: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 I think I have this fixed and have a commit in my geometry branch that gives: h[1] >>> p=Poin

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2011-03-26 Thread sympy
Updates: Status: Started Labels: NeedsReview Comment #21 on issue 1960 by asmeurer: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 I thought we fixed the Half bug. -- You received this message because you are sub

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2011-04-01 Thread sympy
Updates: Status: Fixed Comment #22 on issue 1960 by smi...@gmail.com: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 This is in. Regarding S.Half...is this what you want: h[1] >>> print srepr(S.Half) Rational(1,

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2011-04-01 Thread sympy
Comment #23 on issue 1960 by asmeurer: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 Well, yes, but your srepr fro comment 20 had a Half(1, 2) in it, which is wrong. -- You received this message because you are subscribed to

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2011-04-02 Thread sympy
Comment #24 on issue 1960 by smi...@gmail.com: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 I wanted srepr to stop printing the expr tree like `(Point(Add(x, y), Rational(3, 2))`. That sympy happens to print `Half(1, 2)` is a

Re: Issue 1960 in sympy: should repr form of geometry entities be the same as str?

2011-04-02 Thread sympy
Comment #25 on issue 1960 by asmeurer: should repr form of geometry entities be the same as str? http://code.google.com/p/sympy/issues/detail?id=1960 Yes, you should be able to paste anything returned by srepr() and get the original expression back. Also check the other singletons, too.