- 11 Oct, 2007 3 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
For example, in the SAGE source we have 1158 PyInt_FromLong(0) 776 PyInt_FromLong(1) 258 PyInt_FromLong(2) 33 PyInt_FromLong(3) 21 PyInt_FromLong(10) and a thousand or so others... Who knows how many of these are in loops too.
-
Robert Bradshaw authored
-
- 10 Oct, 2007 3 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 09 Oct, 2007 1 commit
-
-
Thomas Hunger authored
-
- 10 Oct, 2007 1 commit
-
-
Robert Bradshaw authored
This is what the interpreter does, and allows one to get at the actual object (rather than just its truth value).
-
- 08 Oct, 2007 1 commit
-
-
Robert Bradshaw authored
-
- 02 Oct, 2007 1 commit
-
-
Robert Bradshaw authored
-
- 23 Sep, 2007 3 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 25 Sep, 2007 1 commit
-
-
Robert Bradshaw authored
-
- 23 Sep, 2007 1 commit
-
-
Stefan Behnel authored
-
- 21 Sep, 2007 1 commit
-
-
Thomas Hunger authored
gcc complained that a variable might be used uninitialized, which is true. If NULL is passed, all code gets executed with an uninitialized variable which is an error in almost every case. Since python itself never passes NULL, only a real error in other c code could trigger the assert.
-
- 19 Sep, 2007 1 commit
-
-
Thomas Hunger authored
scope-entry as a variable. This means that analyse_attribute expects to find a pointer to a member of the c-object struct. This is not the case for members, so we need a special case.
-
- 25 Sep, 2007 1 commit
-
-
Robert Bradshaw authored
Fixes cdef int a, b cdef int *foo = &a if a else &b
-
- 19 Sep, 2007 7 commits
-
-
Robert Bradshaw authored
so the generated c files don't depend on the version of python used to run Cython
-
Thomas Hunger authored
slots for new pyton versions are not emitted for older versions. This stops compiler warnings.
-
Robert Bradshaw authored
The issue here (as pointed out by Thomas Hunger) is that once the CClass body gets executed the class is already constructed, and its methods are actual methods not functions (as in Python). The CClassScope now returns a utility function on lookup of "classmethod" that creates a class method out of a method (rather than out of a function). When added to the type dictionary, the result is exactly the same as setting the METH_CLASS flag.
-
Thomas Hunger authored
a direct change of a classes tp_dict instead of SetAttr if assignment code is executed in a class body. To tell the code generator that we have a class entry, entry has a new attribute "is_member".
-
Thomas Hunger authored
because the class-body code is exectuted at module-init time.
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 18 Sep, 2007 1 commit
-
-
tom@tom authored
-
- 15 Sep, 2007 5 commits
-
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
Stefan Behnel authored
-
- 13 Sep, 2007 1 commit
-
-
Stefan Behnel authored
-
- 12 Sep, 2007 1 commit
-
-
Stefan Behnel authored
-
- 11 Sep, 2007 2 commits
-
-
Stefan Behnel authored
use 'with GIL' instead of 'withGIL' to avoid introducing a non-Python keyword and to support later extension for other contexts
-
Stefan Behnel authored
use 'with GIL' instead of 'withGIL' to avoid introducing a non-Python keyword and to support later extension for other contexts
-
- 10 Sep, 2007 1 commit
-
-
Stefan Behnel authored
-
- 11 Sep, 2007 1 commit
-
-
Robert Bradshaw authored
-
- 10 Sep, 2007 2 commits
-
-
Stefan Behnel authored
-
Robert Bradshaw authored
-
- 07 Sep, 2007 1 commit
-
-
Robert Bradshaw authored
-