[sage-support] Re: Why does == not return True or False?

2008-02-10 Thread Jurgis Pralgauskis
Hello, If not ==, what would you propose for creating symbolic expression objects? The other obvious choice is eq(f, g), but I think that this is inferior since it is much harder to guess. How often does one need an equation *outside solve*? I never did! So, if one really wants an

[sage-support] Re: 3d plotting on os x 10.4, ppc

2008-02-10 Thread Marshall Hampton
The jmol plotting is now working on my laptop (g4 ppc os x 10.4.11) after I switched to using the Release 6 version of Java from: http://developer.apple.com/java/download/ I think before I downloaded from Sun directly, apparently a bad idea for this particular platform. M. Hampton On Feb 2,

[sage-support] Mutable default arguments in __init__?

2008-02-10 Thread Simon King
Dear Sage team, i guess the following is more a python- than a Sage-problem, and also i have a work-around. But perhaps you can help me to learn something. I have the following code in a module MyTest.so: class T: def __init__(self,D={}): self.Data = D def __repr__(self):

[sage-support] Re: Mutable default arguments in __init__?

2008-02-10 Thread David Harvey
On Feb 10, 2008, at 2:13 PM, Simon King wrote: {}. Moreover, a.Data and b.Data should be different objects, because D={} should create a *new* empty dictionary each time. No -- this is incorrect. The new dictionary is created when the interpreter *reads the class definition*. It happens