- 23 Feb, 2007 3 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
Figured out how to use the Python/C API for some builtin functions (such as len) to avoid python calling conventions.
-
Robert Bradshaw authored
Changes in grammar required change for this, see http://www.python.org/dev/peps/pep-0308/ Most noteably for list comprehensions (dissambiguate the if)
-
- 22 Feb, 2007 1 commit
-
-
Robert Bradshaw authored
- 5 times as fast for L[i], list/tuple L, cdef integer type i, 0 <= i < len(L) - no change for L[a], python object a - 1-1.5% slowdown for L[i], i negative or out of range
-
- 21 Feb, 2007 1 commit
-
-
Robert Bradshaw authored
-
- 27 Jan, 2007 1 commit
-
-
Robert Bradshaw authored
De-allocate function temp variables _after_ computing return value, in case an exception is thrown, caught, and said temp variables still need to be accessed.
-
- 17 Jan, 2007 1 commit
-
-
Robert Bradshaw authored
-
- 16 Jan, 2007 2 commits
-
-
Robert Bradshaw authored
-
Robert Bradshaw authored
-
- 11 Jan, 2007 1 commit
-
-
William Stein authored
The solution in this patch is somewhat hackish, but should be OK.
-
- 10 Jan, 2007 1 commit
-
-
Robert Bradshaw authored
-
- 18 Dec, 2006 2 commits
-
-
William Stein authored
I recently ran into this problem myself (as the current code causes Python to crash), so I whipped up a quick patch that fixes it for me. I think it follows all of the weakref guidelines now. The patch is against the LXML svn pyrex (http://codespeak.net/svn/lxml/pyrex/). Is there a different SVN I should be pointing to? It patches functions generate_new_function, generate_dealloc_function, generate_traverse_function, and generate_clear_function. The patch just compares the entry.name against "__weakref__"; this could probably be centralized in the Entry object if so desired.
-
William Stein authored
Apply Nick Alexander's patch so that Sagex that embeds positions in module, cdef class, and def class docstrings.
-
- 30 Nov, 2006 1 commit
-
-
William Stein authored
There's a minor bug, if you try to cdef a readonly variable at the module scope, the compiler raises an UnboundLocalError exception. The attached patch seems to clear up the problem and gets the compiler to report the correct error.
-
- 25 Nov, 2006 1 commit
-
-
William Stein authored
-
- 03 Nov, 2006 5 commits
-
-
William Stein authored
-
William Stein authored
-
William Stein authored
-
William Stein authored
-
William Stein authored
-
- 02 Nov, 2006 1 commit
-
-
William Stein authored
For example: /* "/Volumes/HOME/s/devel/sage-1/sage/matrix/matrix_generic_sparse.pyx":581 x = set(v.keys()).intersection(set(w.keys())) a = 0 for k in x: # <<<<<<<<<<<<<< a = a + v[k]*w[k] return a */ __pyx_3 = PyObject_GetIter(__pyx_v_x); if (!__pyx_3) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 581; goto __pyx_L1;} for (;;) {
-
- 29 Oct, 2006 2 commits
-
-
William Stein authored
-
William Stein authored
-
- 27 Oct, 2006 1 commit
-
-
William Stein authored
-
- 25 Oct, 2006 2 commits
-
-
William Stein authored
-p, --embed-positions If specified, the positions in Pyrex files of each function definition is embedded in its docstring. This is very useful to support interactive viewing of *Pyrex* source code in, e.g, IPython.
-
William Stein authored
-
- 23 Oct, 2006 1 commit
-
-
William Stein authored
-
- 22 Oct, 2006 7 commits
-
-
William Stein authored
This required a number of changes to a few files. Basically, the full module name is determined in Main.py. It is then passed around a bit until it is used when generating tp_name. This change was needed because otherwise pickling of extension classes with full module names like sage.rings.integer.Integer would fail (since Python would look for integer.Integer instead). NOTE: This is pickling of the extension class itself, not of instances (which could also fail, because the class doesn't pickle).
-
William Stein authored
-
William Stein authored
-
William Stein authored
-
William Stein authored
Finally, you can see the line itself where the error occured, instead of just the line number!!
-
William Stein authored
-
William Stein authored
Added a "Warning" class, and changed it so redeclaring or re-importing is a warning rather than an error. Because Pyrex has no #ifndef macro, it is impossibly painful to use pxi files for declarations in a large project. SAGE is a large project. Also, in Python it is not an error to import a module twice. Thus more in line with Python's behavior, multiple declarations of the same symbol is no longer an error.
-
- 20 Oct, 2006 2 commits
-
-
William Stein authored
-
William Stein authored
-