- 30 Jul, 2007 1 commit
-
-
Stefan Behnel authored
-
- 29 Aug, 2007 1 commit
-
-
Robert Bradshaw authored
-
- 19 Aug, 2007 5 commits
-
-
Robert Bradshaw authored
avoid argument parsing (via meth_o, meth_noargs) for non-python-object arguments, upgrade version number to 0.9.6.4 compiles and runs SAGE fine
-
Robert Bradshaw authored
-
Robert Bradshaw authored
previous patch was just for classes
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 17 Aug, 2007 4 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 29 Jul, 2007 2 commits
-
-
William Stein authored
-
Robert Bradshaw authored
-
- 28 Jul, 2007 6 commits
-
-
William Stein authored
-
William Stein authored
-
William Stein authored
-
William Stein authored
-
William Stein authored
-
William Stein authored
-
- 11 Jul, 2007 1 commit
-
-
Robert Bradshaw authored
Emulates behavior of from <module> import *
-
- 10 Jul, 2007 4 commits
-
-
Robert Bradshaw authored
For some reason, it actually makes it slower in some of the most common cases (now commented out). Why? It does help in others.
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 07 Jul, 2007 3 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 07 Jun, 2007 5 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 01 Jun, 2007 1 commit
-
-
Robert Bradshaw authored
Now if you inherit cdef methods from another class, you may re-declare the arguments and return variables to be sub-types of the original declared type. This will be especially convenient for the SAGE arithmetic architecture. Type-checking is performed if necessary.
-
- 09 May, 2007 1 commit
-
-
Robert Bradshaw authored
-
- 04 May, 2007 2 commits
-
-
Robert Bradshaw authored
One rarely, if ever, wants the [step] argument to be negative.
-
Robert Bradshaw authored
Compile-time checking for builtin names, cast TypeObjects to PyObject* so c compiler won't complain.
-
- 26 Apr, 2007 3 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
E.g. for i from 0 <= i < 10 by 2: print i 0 2 4 6 8 Old for-from loops remain exactly the same (using the ++ or --). If step is specified, the increment operator will be += step or -= step, depending on the orientation of the inequalities (as before). NOTE: 'by' is now a keyword
-
Robert Bradshaw authored
Added a bint c type, which is a c int that coerces to and from python objects via the boolean routines. The purpose of this type is to free the coder from having to use bool() when retrieving and returning semantically "boolean" values (e.g. the result of a compare). The bint type is a subclass of the int type, and the only difference is that it uses PyBool_FromLong and PyObject_IsTrue rather than PyInt_FromLong and PyInt_AsLong. Arithmatic on bints will return ints. Where it makes sense, several builtin functions have been re-declared to return bints, as well as comparisons and the boolean operations or, and, and not.
-
- 14 Apr, 2007 1 commit
-
-
Robert Bradshaw authored
The code "__Pyx_GetName(__pyx_b, __pyx_n_[string])" is performed in several thousand places throughout the sage library, and can be quite expensive (a dictionary lookup, possibly raising an error, etc.) This is redundant as the result will always be the same. I perform the lookup once (on loading the module), then have a pointer to the result for all subsequent use. The most common examples are bool/str/int (both as function calls and in isinstance), True/False, and raisign errors. A side feature is that on loading a module with an illegal __builtin__ name, it will complain at load time rather than at run time.
-