summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Robert Bradshaw [Fri, 23 Feb 2007 21:46:02 +0000 (13:46 -0800)]
modify sizeof() operator to return size of extension type struct
Robert Bradshaw [Fri, 23 Feb 2007 08:18:05 +0000 (00:18 -0800)]
Figured out how to use the Python/C API for some builtin functions (such as len) to avoid python calling conventions.
Robert Bradshaw [Fri, 23 Feb 2007 04:52:31 +0000 (20:52 -0800)]
Conditional expressions
Changes in grammar required change for this, see http://www.python.org/dev/peps/pep-0308/
Most noteably for list comprehensions (dissambiguate the if)
Robert Bradshaw [Thu, 22 Feb 2007 21:17:25 +0000 (13:17 -0800)]
fast cdef type indexing into lists/tuples via runtime type checking
- 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
Robert Bradshaw [Wed, 21 Feb 2007 06:17:26 +0000 (22:17 -0800)]
Disable a**b for cdef int's. (Return result was a double.)
Robert Bradshaw [Sat, 27 Jan 2007 07:06:06 +0000 (23:06 -0800)]
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.
Robert Bradshaw [Wed, 17 Jan 2007 04:24:21 +0000 (20:24 -0800)]
fix temp allocation order, remove straggling comment output
Robert Bradshaw [Tue, 16 Jan 2007 02:21:26 +0000 (18:21 -0800)]
FloorDiv operation
Robert Bradshaw [Tue, 16 Jan 2007 01:39:47 +0000 (17:39 -0800)]
Implemented inplace arithmetic
William Stein [Thu, 11 Jan 2007 06:25:21 +0000 (22:25 -0800)]
Get rid of this sort of error: "Cannot assign type 'gsl_complex' to 'gsl_complex'"
The solution in this patch is somewhat hackish, but should be OK.
Robert Bradshaw [Wed, 10 Jan 2007 09:06:30 +0000 (01:06 -0800)]
List comprehension
William Stein [Mon, 18 Dec 2006 02:59:29 +0000 (18:59 -0800)]
Peter Johnson (peter@tortall.net) weakref patch
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 [Mon, 18 Dec 2006 02:05:12 +0000 (18:05 -0800)]
Apply Nick Alexander's patch so that Sagex that embeds positions in module, cdef class, and def class docstrings.
William Stein [Thu, 30 Nov 2006 19:57:57 +0000 (11:57 -0800)]
Eric Huss's readonly variable patch:
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.
William Stein [Sat, 25 Nov 2006 09:26:53 +0000 (01:26 -0800)]
Modified usage banner.
William Stein [Fri, 3 Nov 2006 23:41:38 +0000 (15:41 -0800)]
Had to also put the type code in for the signed case.
William Stein [Fri, 3 Nov 2006 23:34:50 +0000 (15:34 -0800)]
Made some error output more verbose.
William Stein [Fri, 3 Nov 2006 23:34:39 +0000 (15:34 -0800)]
Added support for automatic conversion of input types to Py_ssize_t.
William Stein [Fri, 3 Nov 2006 17:33:27 +0000 (09:33 -0800)]
Made annoted C files easier to read.
William Stein [Fri, 3 Nov 2006 04:29:29 +0000 (20:29 -0800)]
Fix one warning was too high a level
William Stein [Thu, 2 Nov 2006 15:46:17 +0000 (07:46 -0800)]
Made the output generated by Pyrex much more verbose with better context information.
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 (;;) {
William Stein [Sun, 29 Oct 2006 01:21:12 +0000 (18:21 -0700)]
Changed that error to a warning.
William Stein [Sun, 29 Oct 2006 01:19:51 +0000 (18:19 -0700)]
Fixed an error in a call to the error function.
William Stein [Fri, 27 Oct 2006 11:22:40 +0000 (06:22 -0500)]
Fix a Py_ssize_t build problem.
William Stein [Wed, 25 Oct 2006 07:05:47 +0000 (02:05 -0500)]
Add a new option "-e" or "--embed-positions" to Pyrex.
-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 [Wed, 25 Oct 2006 06:21:53 +0000 (01:21 -0500)]
Change so that warning for multiple declarations are printed by default.
William Stein [Mon, 23 Oct 2006 03:51:53 +0000 (22:51 -0500)]
Delete spurious print statement (that was used for debugging).
William Stein [Sun, 22 Oct 2006 04:56:20 +0000 (21:56 -0700)]
Add correct setting of tp_name to the full module name in Nodes.py.
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 [Sun, 22 Oct 2006 04:54:06 +0000 (21:54 -0700)]
Print out the usage message if pyrexc is called with no options and no input source files.
William Stein [Sun, 22 Oct 2006 03:56:56 +0000 (20:56 -0700)]
Don't list experimental macosx only options. Never needed in context of SAGE.
William Stein [Sun, 22 Oct 2006 03:55:47 +0000 (20:55 -0700)]
Add to help that multiple include directories are allowed.
William Stein [Sun, 22 Oct 2006 02:47:08 +0000 (19:47 -0700)]
Added nice error messages with context information.
Finally, you can see the line itself where the error occured,
instead of just the line number!!
William Stein [Sun, 22 Oct 2006 02:35:04 +0000 (19:35 -0700)]
Print "warning: " before warnings, so they look different than errors.
William Stein [Sun, 22 Oct 2006 01:53:34 +0000 (18:53 -0700)]
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.
William Stein [Fri, 20 Oct 2006 04:30:50 +0000 (21:30 -0700)]
Version of Pyrex distributed with SAGE on October 19, 2006
William Stein [Fri, 20 Oct 2006 04:28:18 +0000 (21:28 -0700)]
Official Pyrex version 0.9.4.1