[sage-devel] Re: __cmp__ vs. __eq__ in element class

2014-10-26 Thread Travis Scrimshaw
> Python 3 only uses __eq__, __lt__, . Python also provides > functools.partial_ordering to synthesizing the remaining methods just from > __eq__ and __lt__. We either use that or write a similar decorator to also > deal with coercion. > Perhaps we could follow suit with other parts o

[sage-devel] Sage, django and Apache

2014-10-26 Thread Pedro Fernando Morales-Almazan
I'm trying to set up django with sage support on an Apache server. I'm working on Ubuntu. So far django and sage work fine, but I'm not able to make Apache work. Here is what I've done: - Install django(1.7.1) in sage(6.2-x86_64)'s python(2.7.5) ( http://ask.sagemath.org/question/7576/will

[sage-devel] Re: __cmp__ vs. __eq__ in element class

2014-10-26 Thread Nils Bruin
On Sunday, October 26, 2014 2:08:27 PM UTC-7, Volker Braun wrote: > > Python 3 only uses __eq__, __lt__, . Python also provides > functools.partial_ordering to synthesizing the remaining methods just from > __eq__ and __lt__. We either use that or write a similar decorator to also > deal wit

[sage-devel] Re: __cmp__ vs. __eq__ in element class

2014-10-26 Thread Volker Braun
Python 3 only uses __eq__, __lt__, . Python also provides functools.partial_ordering to synthesizing the remaining methods just from __eq__ and __lt__. We either use that or write a similar decorator to also deal with coercion. The __richcmp__ method is a Cython convention and doesn't exist

[sage-devel] Re: __cmp__ vs. __eq__ in element class

2014-10-26 Thread Simon King
Hi Travis, On 2014-10-26, Travis Scrimshaw wrote: > We need to get away from the __cmp__ to make the transition easier. Plus I > would think most parents are not totally ordered. Just for clarification: What exactly do you mean by "get away from the __cmp__"? Are you saying we should use __rich

[sage-devel] Re: __cmp__ vs. __eq__ in element class

2014-10-26 Thread Wilfried Lübbe
Am Sonntag, 26. Oktober 2014 18:59:10 UTC+1 schrieb Eric Gourgoulhon: > > > > Le dimanche 26 octobre 2014 16:02:30 UTC+1, Travis Scrimshaw a écrit : >> >> We need to get away from the __cmp__ to make the transition easier. Plus >> I would think most parents are not totally ordered. >> >> Yes mos

[sage-devel] Re: __cmp__ vs. __eq__ in element class

2014-10-26 Thread Eric Gourgoulhon
Le dimanche 26 octobre 2014 16:02:30 UTC+1, Travis Scrimshaw a écrit : > > We need to get away from the __cmp__ to make the transition easier. Plus I > would think most parents are not totally ordered. > > Yes most probably. The task looks quite heavy: in src/sage: find -name "*.py*" | xargs gre

[sage-devel] Re: __cmp__ vs. __eq__ in element class

2014-10-26 Thread Eric Gourgoulhon
Le dimanche 26 octobre 2014 11:08:15 UTC+1, Volker Braun a écrit : > > Right now: only implement __cmp__ following what is written in > sage/structure/element.pyx, and not __eq__ and friends. You can play some > tricks with the __richcmp__ hook but its probably best to stick to a single > kind

[sage-devel] Re: "Can We Trust Computer Algebra Systems?"

2014-10-26 Thread rjf
This article is also discussed in another thread .. Trio . . Depending on what you are doing with the results of any computation, it may be prudent to verify the results. I don't know that CAS are especially more prone to bugs, but it may be that CAS are more likely to come up with results that can

[sage-devel] Re: __cmp__ vs. __eq__ in element class

2014-10-26 Thread Travis Scrimshaw
We need to get away from the __cmp__ to make the transition easier. Plus I would think most parents are not totally ordered. Best, Travis On Sunday, October 26, 2014 3:08:15 AM UTC-7, Volker Braun wrote: > > Right now: only implement __cmp__ following what is written in > sage/structure/elemen

[sage-devel] Re: __cmp__ vs. __eq__ in element class

2014-10-26 Thread Volker Braun
Right now: only implement __cmp__ following what is written in sage/structure/element.pyx, and not __eq__ and friends. You can play some tricks with the __richcmp__ hook but its probably best to stick to a single kind of comparison if you want your stuff to transition easily to python3. On Sun

[sage-devel] __cmp__ vs. __eq__ in element class

2014-10-26 Thread Eric Gourgoulhon
Hi, When implementing some algebra element class, I faced the following issue: the class inherits from sage.structure.element.CommutativeAlgebraElement and I've implemented the __eq__() and __ne__() methods, but not __cmp__() because my algebra is not an ordered set. Everything works well (th

[sage-devel] git trac asking for password

2014-10-26 Thread Volker Braun
The password prompt is from git, it can't find the ssh key to authenticate and falls back to password. Make sure you have the right ssh key, see the developer manual for details. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe fro

[sage-devel] git trac asking for password

2014-10-26 Thread Amit Jamadagni
Hello everyone, I have setup the git-trac-enable using the source enable.sh and also have set the username and password using git trac config --user USERNAME --pass ''. It prompts me to give in a password ~/sage$ git trac push 17030 Pushing to Trac #17030... Guessed remote branch: u/a