[sage-devel] Re: is_zero

2007-04-12 Thread ncalexan
> Hi there, > > many classes in SAGE implement and test for is_zero. I think these methods > should be replaced with __nonzero__ methods, as this is the standard way > of > doing such a test in Python. For example, int doesn't have a is_zero(), > such > that one would have to test for a type (of

[sage-devel] Re: Block indentation!

2007-07-01 Thread ncalexan
> > On Sunday 01 July 2007 09:06, [EMAIL PROTECTED] wrote: >> At long last, I've implemented the single most requested feature of the >> notebook: block indent / unindent. > > Very cool. > >> People have also made noise about block >> commenting / uncommenting. Anybody have a preferred key combo?

[sage-devel] Re: integer fast-paths for simple arithmetic functions

2007-09-10 Thread ncalexan
On Mon, September 10, 2007 1:44 pm, Joel B. Mohler wrote: > The principle refinement needed is: How can call_fast_integer_function > bewritten generically? This does not address how one does this, and I'm not even sure this is what you mean by generic, but: Python includes a method decorator sy