cython.git
16 years agomerged in latest cython-devel
Stefan Behnel [Fri, 30 Oct 2009 09:51:33 +0000 (10:51 +0100)]
merged in latest cython-devel

16 years agoremove sage-specific and unused incref-local-binop option
Robert Bradshaw [Fri, 30 Oct 2009 06:23:27 +0000 (23:23 -0700)]
remove sage-specific and unused incref-local-binop option

16 years agorewrite of C array iteration support to iterate directly over pointers instead of...
Stefan Behnel [Thu, 29 Oct 2009 16:00:34 +0000 (17:00 +0100)]
rewrite of C array iteration support to iterate directly over pointers instead of ints

16 years agoextended test case
Stefan Behnel [Thu, 29 Oct 2009 15:55:00 +0000 (16:55 +0100)]
extended test case

16 years agofix #442: non-pyobject for-in-loop targets failed with enumerate() optimisation
Stefan Behnel [Thu, 29 Oct 2009 11:59:58 +0000 (12:59 +0100)]
fix #442: non-pyobject for-in-loop targets failed with enumerate() optimisation

16 years agoMove some tests into function docstrings.
Robert Bradshaw [Thu, 29 Oct 2009 11:25:40 +0000 (04:25 -0700)]
Move some tests into function docstrings.

16 years agoextended/fixed test case
Stefan Behnel [Thu, 29 Oct 2009 10:32:06 +0000 (11:32 +0100)]
extended/fixed test case

16 years agooptimise calls to int() and float() for casting purposes
Stefan Behnel [Thu, 29 Oct 2009 10:29:16 +0000 (11:29 +0100)]
optimise calls to int() and float() for casting purposes

16 years agouse plain malloc/free in freezing code
Robert Bradshaw [Thu, 29 Oct 2009 08:30:02 +0000 (01:30 -0700)]
use plain malloc/free in freezing code

16 years agoT442, not T441.
Robert Bradshaw [Thu, 29 Oct 2009 08:01:26 +0000 (01:01 -0700)]
T442, not T441.

16 years agoTest fixes for T441 enumerate bug.
Robert Bradshaw [Thu, 29 Oct 2009 07:59:28 +0000 (00:59 -0700)]
Test fixes for T441 enumerate bug.

16 years agoWorkaround for T441, enumerate optimization bug.
Robert Bradshaw [Thu, 29 Oct 2009 07:59:03 +0000 (00:59 -0700)]
Workaround for T441, enumerate optimization bug.

16 years agoFix to compile sage.
Robert Bradshaw [Thu, 29 Oct 2009 06:36:46 +0000 (23:36 -0700)]
Fix to compile sage.

Was giving a gcc error for a local named "zero"

16 years agoDisable embedded testing for Py3 (can't run Cython).
Robert Bradshaw [Thu, 29 Oct 2009 05:53:25 +0000 (22:53 -0700)]
Disable embedded testing for Py3 (can't run Cython).

16 years agoadd embedding to the test suite
Robert Bradshaw [Thu, 29 Oct 2009 05:49:36 +0000 (22:49 -0700)]
add embedding to the test suite

16 years agoTest for --embedded mode.
Robert Bradshaw [Thu, 29 Oct 2009 05:12:14 +0000 (22:12 -0700)]
Test for --embedded mode.

16 years agoFix complex return values
Dag Sverre Seljebotn [Wed, 28 Oct 2009 16:10:12 +0000 (17:10 +0100)]
Fix complex return values

16 years agomerge
Dag Sverre Seljebotn [Wed, 28 Oct 2009 15:26:04 +0000 (16:26 +0100)]
merge

16 years agoTestcase: Coercing typedef float to complex miscompiles
Dag Sverre Seljebotn [Wed, 28 Oct 2009 15:25:32 +0000 (16:25 +0100)]
Testcase: Coercing typedef float to complex miscompiles

16 years agoextended test case for ticket 252
Stefan Behnel [Wed, 28 Oct 2009 13:29:21 +0000 (14:29 +0100)]
extended test case for ticket 252

--HG--
rename : tests/compile/bad_c_struct_T252.pyx => tests/run/bad_c_struct_T252.pyx

16 years agoSyntax highlighting for Cython and NumPy for KATE and KDevelop.
Sturla Molden [Wed, 28 Oct 2009 09:57:23 +0000 (02:57 -0700)]
Syntax highlighting for Cython and NumPy for KATE and KDevelop.

16 years agomerge
Robert Bradshaw [Wed, 28 Oct 2009 09:51:14 +0000 (02:51 -0700)]
merge

16 years agoadded doctest to compile test case
Stefan Behnel [Wed, 28 Oct 2009 07:57:12 +0000 (08:57 +0100)]
added doctest to compile test case

--HG--
rename : tests/compile/coercearraytoptr.pyx => tests/run/coercearraytoptr.pyx

16 years agoextended test case to make sure the ref-count optimisation strikes
Stefan Behnel [Wed, 28 Oct 2009 07:02:03 +0000 (08:02 +0100)]
extended test case to make sure the ref-count optimisation strikes

16 years agodrop ref-counting on C attribute swaps
Stefan Behnel [Wed, 28 Oct 2009 06:23:17 +0000 (07:23 +0100)]
drop ref-counting on C attribute swaps

16 years agoPy3 test fixes
Stefan Behnel [Tue, 27 Oct 2009 22:04:32 +0000 (23:04 +0100)]
Py3 test fixes

16 years agotest fixes for Py2.4
Stefan Behnel [Tue, 27 Oct 2009 20:57:28 +0000 (21:57 +0100)]
test fixes for Py2.4

16 years agomerge
Dag Sverre Seljebotn [Tue, 27 Oct 2009 19:18:19 +0000 (20:18 +0100)]
merge

16 years agonumpy.pxd: Add intp_t and uintp_t
Dag Sverre Seljebotn [Tue, 27 Oct 2009 19:18:02 +0000 (20:18 +0100)]
numpy.pxd: Add intp_t and uintp_t

16 years agoefficiently support for-in loops over char* arrays/pointers
Stefan Behnel [Tue, 27 Oct 2009 11:51:12 +0000 (12:51 +0100)]
efficiently support for-in loops over char* arrays/pointers

16 years agoNicer error message for undeclared[idx]
Dag Sverre Seljebotn [Mon, 26 Oct 2009 11:56:23 +0000 (12:56 +0100)]
Nicer error message for undeclared[idx]

16 years agocheck for bytes.decode() optimisation in test case
Stefan Behnel [Mon, 26 Oct 2009 08:49:46 +0000 (09:49 +0100)]
check for bytes.decode() optimisation in test case

16 years agoextended test case
Stefan Behnel [Mon, 26 Oct 2009 08:43:14 +0000 (09:43 +0100)]
extended test case

16 years agodrop redundant specialisation code from for-in loop if we know it's not a list or...
Stefan Behnel [Mon, 26 Oct 2009 08:42:20 +0000 (09:42 +0100)]
drop redundant specialisation code from for-in loop if we know it's not a list or tuple

16 years agocleanup, support unbound method calls to bytes.decode()
Stefan Behnel [Mon, 26 Oct 2009 06:52:43 +0000 (07:52 +0100)]
cleanup, support unbound method calls to bytes.decode()

16 years agoticket 436: efficiently support char*.decode() through C-API calls
Stefan Behnel [Sun, 25 Oct 2009 20:28:56 +0000 (21:28 +0100)]
ticket 436: efficiently support char*.decode() through C-API calls

16 years agoadd missing slots 'tp_del' (Py>=2.3) and 'tp_version_tag' (Py>=2.6)
Lisandro Dalcin [Sun, 25 Oct 2009 19:28:03 +0000 (17:28 -0200)]
add missing slots 'tp_del' (Py>=2.3) and 'tp_version_tag' (Py>=2.6)

16 years agofix intern() test in Py3
Stefan Behnel [Sun, 25 Oct 2009 08:17:08 +0000 (09:17 +0100)]
fix intern() test in Py3

16 years agofix testcase
Lisandro Dalcin [Sat, 24 Oct 2009 21:18:52 +0000 (19:18 -0200)]
fix testcase

16 years agoBetter makefile clean.
Robert Bradshaw [Sat, 24 Oct 2009 20:44:36 +0000 (13:44 -0700)]
Better makefile clean.

Bug and fix reported by Mark Lodato.

16 years ago--embed mode: fix Py3, floating point on FreeBSD
Mark Lodato [Sat, 24 Oct 2009 20:17:23 +0000 (16:17 -0400)]
--embed mode: fix Py3, floating point on FreeBSD

Incorporate the changes of cython_freeze:
* fix when compiling on Python 3 (Issue #434)
* fix floating point issues on FreeBSD

16 years agofreeze: fix for compiling with Python3
Mark Lodato [Sat, 24 Oct 2009 19:37:28 +0000 (15:37 -0400)]
freeze: fix for compiling with Python3

To get the output of cython_freeze to compile with both Python 2 and
Python 3, I copied the contents of Python-3.1.1/Modules/python.c, with
some slight modifications.  The main issue is that Python 3 uses
wchar_t, while Python 2 uses char.  It also appears that the
Py_FlushLine/PyErr_Clear is not needed in Python 3.

Related to #434: "main() function generated by --embed doesn't compile
in Py3"

16 years agofreeze: exit(2) in examples, to test exit code
Mark Lodato [Sat, 24 Oct 2009 19:01:29 +0000 (15:01 -0400)]
freeze: exit(2) in examples, to test exit code

The cython_freeze-generated executable exits with code 1 if something
wrong happens, unless a SystemExit exception occurred, in which case it
returns the value passed to sys.exit().  In order to differentiate
between the two cases, change the two example Cython modules to exit(2).

16 years agofreeze: include FreeBSD fix from Python's main()
Mark Lodato [Sat, 24 Oct 2009 18:40:41 +0000 (14:40 -0400)]
freeze: include FreeBSD fix from Python's main()

Copy the fix for floating point exceptions on FreeBSD from Python's
Module/python.c.

16 years agomerged in latest cython-devel
Stefan Behnel [Sat, 24 Oct 2009 13:55:29 +0000 (15:55 +0200)]
merged in latest cython-devel

16 years agofix identifier decoding check
Stefan Behnel [Sat, 24 Oct 2009 13:43:24 +0000 (15:43 +0200)]
fix identifier decoding check

16 years agofix exec in Py2.3
Stefan Behnel [Sat, 24 Oct 2009 13:28:56 +0000 (15:28 +0200)]
fix exec in Py2.3

16 years agomissing weakref .pxd file, include all python_*.pxd files in python.pxd, test their...
Stefan Behnel [Sat, 24 Oct 2009 13:12:23 +0000 (15:12 +0200)]
missing weakref .pxd file, include all python_*.pxd files in python.pxd, test their cimport

16 years agoremoved dead comment
Stefan Behnel [Sat, 24 Oct 2009 09:30:00 +0000 (11:30 +0200)]
removed dead comment

16 years agominor refactoring, use 'notnone=True' in type tests
Stefan Behnel [Sat, 24 Oct 2009 08:59:41 +0000 (10:59 +0200)]
minor refactoring, use 'notnone=True' in type tests

16 years agoanother merge fix
Stefan Behnel [Wed, 21 Oct 2009 06:49:05 +0000 (08:49 +0200)]
another merge fix

16 years agomerged in latest cython-devel (with minor merge fixes)
Stefan Behnel [Wed, 21 Oct 2009 06:46:40 +0000 (08:46 +0200)]
merged in latest cython-devel (with minor merge fixes)

16 years agohandle simple swap assignments without ref-counting
Stefan Behnel [Tue, 20 Oct 2009 20:31:39 +0000 (22:31 +0200)]
handle simple swap assignments without ref-counting

16 years agocomments
Stefan Behnel [Tue, 20 Oct 2009 19:36:58 +0000 (21:36 +0200)]
comments

16 years agofix switch transform
Stefan Behnel [Tue, 20 Oct 2009 19:16:12 +0000 (21:16 +0200)]
fix switch transform

16 years agomerge
Stefan Behnel [Tue, 20 Oct 2009 19:09:11 +0000 (21:09 +0200)]
merge

16 years agoanother rewrite to catch comparisons of invalid types
Stefan Behnel [Tue, 20 Oct 2009 19:08:24 +0000 (21:08 +0200)]
another rewrite to catch comparisons of invalid types

16 years agoextended test case
Stefan Behnel [Tue, 20 Oct 2009 19:06:22 +0000 (21:06 +0200)]
extended test case

16 years agoextended test case
Stefan Behnel [Tue, 20 Oct 2009 19:02:54 +0000 (21:02 +0200)]
extended test case

16 years agoextended test case
Stefan Behnel [Tue, 20 Oct 2009 18:08:57 +0000 (20:08 +0200)]
extended test case

16 years agodon't allow pointer assignments to Python variables (except for char*)
Stefan Behnel [Tue, 20 Oct 2009 18:08:31 +0000 (20:08 +0200)]
don't allow pointer assignments to Python variables (except for char*)

16 years agotest simplification
Stefan Behnel [Tue, 20 Oct 2009 18:06:22 +0000 (20:06 +0200)]
test simplification

16 years agoFix for buffer testcase (s must be bytes, not unicode)
Dag Sverre Seljebotn [Tue, 20 Oct 2009 08:46:09 +0000 (10:46 +0200)]
Fix for buffer testcase (s must be bytes, not unicode)

16 years agoBlacklist __nonzero__ from autotestdict
Dag Sverre Seljebotn [Tue, 20 Oct 2009 08:37:13 +0000 (10:37 +0200)]
Blacklist __nonzero__ from autotestdict

16 years agonumpy.pxd: npy_complexX should be the C structs used by C NumPy, not Cython complex
Dag Sverre Seljebotn [Tue, 20 Oct 2009 08:23:01 +0000 (10:23 +0200)]
numpy.pxd: npy_complexX should be the C structs used by C NumPy, not Cython complex

16 years agomerge
Dag Sverre Seljebotn [Tue, 20 Oct 2009 08:06:41 +0000 (10:06 +0200)]
merge

16 years agoFix z.conjugate() for typedef-ed z; disallow external typedef complex
Dag Sverre Seljebotn [Tue, 20 Oct 2009 08:06:09 +0000 (10:06 +0200)]
Fix z.conjugate() for typedef-ed z; disallow external typedef complex

16 years agofind common type for comparisons *before* coercing operands, to prevent inconsistent...
Stefan Behnel [Mon, 19 Oct 2009 10:14:12 +0000 (12:14 +0200)]
find common type for comparisons *before* coercing operands, to prevent inconsistent types and loosing type information

16 years agoPy3 test fixes
Stefan Behnel [Sun, 18 Oct 2009 17:37:13 +0000 (19:37 +0200)]
Py3 test fixes

16 years agofix default string value representation in auto-embedded signatures
Stefan Behnel [Sun, 18 Oct 2009 17:31:53 +0000 (19:31 +0200)]
fix default string value representation in auto-embedded signatures

16 years agoenable working test
Stefan Behnel [Sun, 18 Oct 2009 16:25:34 +0000 (18:25 +0200)]
enable working test

16 years agofix source comments for non-ASCII characters
Stefan Behnel [Sun, 18 Oct 2009 15:58:18 +0000 (17:58 +0200)]
fix source comments for non-ASCII characters

16 years agotest case cleanup
Stefan Behnel [Sun, 18 Oct 2009 12:52:43 +0000 (14:52 +0200)]
test case cleanup

16 years agonew test case for reraising exceptions
Stefan Behnel [Sun, 18 Oct 2009 12:42:50 +0000 (14:42 +0200)]
new test case for reraising exceptions

16 years agoPython calls SetTraceback() later, so should we
Stefan Behnel [Sun, 18 Oct 2009 12:01:08 +0000 (14:01 +0200)]
Python calls SetTraceback() later, so should we

16 years agofix memory leak in new exception raising code
Stefan Behnel [Sun, 18 Oct 2009 11:30:34 +0000 (13:30 +0200)]
fix memory leak in new exception raising code

16 years agorefactoring of exception raising code, simpler/faster/correcter code for reraising...
Stefan Behnel [Sun, 18 Oct 2009 10:30:21 +0000 (12:30 +0200)]
refactoring of exception raising code, simpler/faster/correcter code for reraising exceptions, separate implementation for Py3, minor fixes for error cases

16 years agoPy2 test fixes
Stefan Behnel [Sat, 17 Oct 2009 21:29:50 +0000 (23:29 +0200)]
Py2 test fixes

16 years agoavoid redundant recoding during code comment injection by configuring input codec...
Stefan Behnel [Sat, 17 Oct 2009 20:52:16 +0000 (22:52 +0200)]
avoid redundant recoding during code comment injection by configuring input codec directly

16 years agofix bug 412: str char comparison, refactoring to move comparison coercions closer...
Stefan Behnel [Sat, 17 Oct 2009 20:34:28 +0000 (22:34 +0200)]
fix bug 412: str char comparison, refactoring to move comparison coercions closer in the code

16 years agofix test case in C++
Stefan Behnel [Sat, 17 Oct 2009 12:33:20 +0000 (14:33 +0200)]
fix test case in C++

16 years agosome test fixes
Robert Bradshaw [Sat, 17 Oct 2009 09:04:04 +0000 (02:04 -0700)]
some test fixes

16 years agoBetter error for foo(*args) when foo a cdef function.
Robert Bradshaw [Sat, 17 Oct 2009 07:25:11 +0000 (00:25 -0700)]
Better error for foo(*args) when foo a cdef function.

16 years agosimple test for testing truth of C values
Stefan Behnel [Fri, 16 Oct 2009 22:35:18 +0000 (00:35 +0200)]
simple test for testing truth of C values

16 years agomerge
Stefan Behnel [Fri, 16 Oct 2009 11:51:20 +0000 (13:51 +0200)]
merge

16 years agomore .pxd signature fixing
Stefan Behnel [Fri, 16 Oct 2009 11:38:03 +0000 (13:38 +0200)]
more .pxd signature fixing

16 years agoYet another bugfix for autotestdict
Dag Sverre Seljebotn [Fri, 16 Oct 2009 11:31:53 +0000 (13:31 +0200)]
Yet another bugfix for autotestdict

16 years agoUpdate a testcase
Dag Sverre Seljebotn [Fri, 16 Oct 2009 11:21:32 +0000 (13:21 +0200)]
Update a testcase

16 years agoFix Parsing.py so it compiles with Cython
Dag Sverre Seljebotn [Fri, 16 Oct 2009 11:20:15 +0000 (13:20 +0200)]
Fix Parsing.py so it compiles with Cython

16 years agoFix #418 (wrong error message)
Dag Sverre Seljebotn [Fri, 16 Oct 2009 11:14:22 +0000 (13:14 +0200)]
Fix #418 (wrong error message)

16 years agoAnother utility code order fix
Dag Sverre Seljebotn [Fri, 16 Oct 2009 10:21:11 +0000 (12:21 +0200)]
Another utility code order fix

16 years agomerge
Dag Sverre Seljebotn [Fri, 16 Oct 2009 10:19:07 +0000 (12:19 +0200)]
merge

16 years agoEven more helpful error message (use bytes?)
Dag Sverre Seljebotn [Fri, 16 Oct 2009 10:18:10 +0000 (12:18 +0200)]
Even more helpful error message (use bytes?)

16 years agoFix complex number utitity code order (sometimes they would come out in wrong order)
Dag Sverre Seljebotn [Fri, 16 Oct 2009 10:09:32 +0000 (12:09 +0200)]
Fix complex number utitity code order (sometimes they would come out in wrong order)

16 years agomerge
Stefan Behnel [Fri, 16 Oct 2009 09:51:55 +0000 (11:51 +0200)]
merge

16 years agofixed various declarations in shipped .pxd files
Stefan Behnel [Fri, 16 Oct 2009 09:50:17 +0000 (11:50 +0200)]
fixed various declarations in shipped .pxd files

16 years agoChange command-line directive behaviour for 0.12
Dag Sverre Seljebotn [Fri, 16 Oct 2009 08:30:31 +0000 (10:30 +0200)]
Change command-line directive behaviour for 0.12

16 years agocleanup
Stefan Behnel [Thu, 15 Oct 2009 14:58:31 +0000 (16:58 +0200)]
cleanup

16 years agonew ndarray.base setter/getter functions by Neal Becker
Stefan Behnel [Thu, 15 Oct 2009 14:34:13 +0000 (16:34 +0200)]
new ndarray.base setter/getter functions by Neal Becker

16 years agofix PyObject declaration
Stefan Behnel [Thu, 15 Oct 2009 14:26:14 +0000 (16:26 +0200)]
fix PyObject declaration