cython.git
16 years agomerge
Robert Bradshaw [Thu, 15 Oct 2009 11:05:14 +0000 (04:05 -0700)]
merge

16 years agoOnly need simple, don't need to force temp for bool binop nodes.
Robert Bradshaw [Thu, 15 Oct 2009 11:04:26 +0000 (04:04 -0700)]
Only need simple, don't need to force temp for bool binop nodes.

16 years agoFix short-circuit for and/or, preserve type.
Robert Bradshaw [Thu, 15 Oct 2009 10:58:28 +0000 (03:58 -0700)]
Fix short-circuit for and/or, preserve type.

16 years agomerge
Dag Sverre Seljebotn [Thu, 15 Oct 2009 10:56:57 +0000 (12:56 +0200)]
merge

16 years agoRemove TempNode from OverrideCheckNode (fixes #411)
Dag Sverre Seljebotn [Thu, 15 Oct 2009 10:54:48 +0000 (12:54 +0200)]
Remove TempNode from OverrideCheckNode (fixes #411)

16 years agoFix typo in test.
Robert Bradshaw [Thu, 15 Oct 2009 10:39:59 +0000 (03:39 -0700)]
Fix typo in test.

16 years agoshort circut bug test #404
Robert Bradshaw [Thu, 15 Oct 2009 10:01:39 +0000 (03:01 -0700)]
short circut bug test #404

16 years agoAllow explicit casts between object and void*/struct*.
Robert Bradshaw [Thu, 15 Oct 2009 09:43:58 +0000 (02:43 -0700)]
Allow explicit casts between object and void*/struct*.

16 years agoFix #245, crash on cimported struct -> object.
Robert Bradshaw [Thu, 15 Oct 2009 09:00:28 +0000 (02:00 -0700)]
Fix #245, crash on cimported struct -> object.

16 years agomerge
Robert Bradshaw [Thu, 15 Oct 2009 08:42:39 +0000 (01:42 -0700)]
merge

16 years agoTestcase for #411, cpdef temps.
Robert Bradshaw [Thu, 15 Oct 2009 08:42:28 +0000 (01:42 -0700)]
Testcase for #411, cpdef temps.

16 years agoMinor cleanup.
Robert Bradshaw [Thu, 15 Oct 2009 08:41:23 +0000 (01:41 -0700)]
Minor cleanup.

16 years agocomplexvar.conjugate() support
Dag Sverre Seljebotn [Thu, 15 Oct 2009 08:35:20 +0000 (10:35 +0200)]
complexvar.conjugate() support

16 years agoAdding reminders to self
Dag Sverre Seljebotn [Thu, 15 Oct 2009 08:07:37 +0000 (10:07 +0200)]
Adding reminders to self

16 years ago#412 testcase
Dag Sverre Seljebotn [Thu, 15 Oct 2009 08:01:27 +0000 (10:01 +0200)]
#412 testcase

16 years agonaming references changed from 'option' to 'directive'
Peter Alexander [Thu, 15 Oct 2009 07:47:42 +0000 (03:47 -0400)]
naming references changed from 'option' to 'directive'

16 years agoTestcase for 304
Dag Sverre Seljebotn [Thu, 15 Oct 2009 07:18:37 +0000 (09:18 +0200)]
Testcase for 304

16 years agoTestcase for #373
Dag Sverre Seljebotn [Thu, 15 Oct 2009 07:14:33 +0000 (09:14 +0200)]
Testcase for #373

16 years agoTestcase for #245
Dag Sverre Seljebotn [Thu, 15 Oct 2009 07:05:08 +0000 (09:05 +0200)]
Testcase for #245

16 years agomerge
Dag Sverre Seljebotn [Thu, 15 Oct 2009 06:20:44 +0000 (08:20 +0200)]
merge

16 years agonumpy.pxd: Iterator macros
Dag Sverre Seljebotn [Thu, 15 Oct 2009 06:08:59 +0000 (08:08 +0200)]
numpy.pxd: Iterator macros

16 years agoFix error in hashing partially-declared types.
Robert Bradshaw [Thu, 15 Oct 2009 05:34:58 +0000 (22:34 -0700)]
Fix error in hashing partially-declared types.

16 years agoNew test for #409
Robert Bradshaw [Thu, 15 Oct 2009 05:19:15 +0000 (22:19 -0700)]
New test for #409

16 years agoFix bug #409 with temps and sequence unpacking.
Robert Bradshaw [Thu, 15 Oct 2009 05:06:59 +0000 (22:06 -0700)]
Fix bug #409 with temps and sequence unpacking.

16 years agofix for changes in PyXXXDescrObject structures in upcoming Py3.2
Lisandro Dalcin [Wed, 14 Oct 2009 23:12:10 +0000 (20:12 -0300)]
fix for changes in PyXXXDescrObject structures in upcoming Py3.2

16 years agoPublic module C-API is broken under Python 3.2 (ticket #407)
Lisandro Dalcin [Wed, 14 Oct 2009 21:45:46 +0000 (18:45 -0300)]
Public module C-API is broken under Python 3.2 (ticket #407)

--HG--
extra : rebase_source : b760de58ec941046c86e5ecadb5afc4c56d9ddaa

16 years agoautodict richcmp test
Robert Bradshaw [Thu, 15 Oct 2009 19:49:20 +0000 (12:49 -0700)]
autodict richcmp test

16 years agoAnother blacklisted autotestdict method.
Robert Bradshaw [Thu, 15 Oct 2009 19:47:38 +0000 (12:47 -0700)]
Another blacklisted autotestdict method.

16 years agoIncomplete hack for autotestdict, see #387
Dag Sverre Seljebotn [Thu, 15 Oct 2009 19:28:41 +0000 (21:28 +0200)]
Incomplete hack for autotestdict, see #387

16 years agofix testcase to silent compiler warnings
Lisandro Dalcin [Wed, 14 Oct 2009 21:22:16 +0000 (18:22 -0300)]
fix testcase to silent compiler warnings

16 years agofix for distutils changes in upcoming Py2.7 and Py3.2
Lisandro Dalcin [Wed, 14 Oct 2009 21:11:17 +0000 (18:11 -0300)]
fix for distutils changes in upcoming Py2.7 and Py3.2

16 years agoRefNanny: renaming of internal stuff and simpler import/export API
Lisandro Dalcin [Wed, 14 Oct 2009 20:40:05 +0000 (17:40 -0300)]
RefNanny: renaming of internal stuff and simpler import/export API

16 years agofix for unittest changes in upcoming Py2.7 and Py3.2
Lisandro Dalcin [Wed, 14 Oct 2009 18:57:48 +0000 (15:57 -0300)]
fix for unittest changes in upcoming Py2.7 and Py3.2

16 years agofix new .pxd file and cimport it in python.pxd
Stefan Behnel [Wed, 14 Oct 2009 14:03:10 +0000 (16:03 +0200)]
fix new .pxd file and cimport it in python.pxd

16 years agoPyCObject C-API declarations
Stefan Behnel [Wed, 14 Oct 2009 13:59:18 +0000 (15:59 +0200)]
PyCObject C-API declarations

16 years agomerge
Stefan Behnel [Wed, 14 Oct 2009 11:49:18 +0000 (13:49 +0200)]
merge

16 years agosafer way to initialise string constants: keep bytes/str/unicode separated also in...
Stefan Behnel [Wed, 14 Oct 2009 11:31:27 +0000 (13:31 +0200)]
safer way to initialise string constants: keep bytes/str/unicode separated also in corner cases

16 years agofix nice_identifier regex
Stefan Behnel [Wed, 14 Oct 2009 09:48:27 +0000 (11:48 +0200)]
fix nice_identifier regex

16 years agofix identifier handling: must not use encoding
Stefan Behnel [Wed, 14 Oct 2009 09:46:38 +0000 (11:46 +0200)]
fix identifier handling: must not use encoding

16 years agofix ticket #346
Stefan Behnel [Tue, 13 Oct 2009 18:05:21 +0000 (20:05 +0200)]
fix ticket #346

16 years agoSeamless C99/C++ complex numbers support (ticket #398)
Lisandro Dalcin [Tue, 13 Oct 2009 14:20:37 +0000 (11:20 -0300)]
Seamless C99/C++ complex numbers support (ticket #398)

16 years agoprevent warnings when compiling with `gcc -Wextra`
Mark Lodato [Mon, 12 Oct 2009 16:37:59 +0000 (12:37 -0400)]
prevent warnings when compiling with `gcc -Wextra`

The PyInt conversion functions generate two warnings when compiled under
`gcc -Wall -Wextra`:

1. comparison of unsigned expression < 0 is always false

2. signed and unsigned type in conditional expression

This patch fixes these problems by creating a new temporary variable
`is_unsigned`, which fixes problem 1, and by converting the ternary
return expression into a normal if/else branch, which fixes problem 2.

16 years agoadditional test for type casts (ticket #417)
Lisandro Dalcin [Fri, 23 Oct 2009 18:41:24 +0000 (16:41 -0200)]
additional test for type casts (ticket #417)

--HG--
extra : rebase_source : 3512ea980463bae13f30b0d8bd395cabe253e65c

16 years agoExtension type cast should reject None (ticket #417)
Lisandro Dalcin [Thu, 22 Oct 2009 20:42:30 +0000 (18:42 -0200)]
Extension type cast should reject None (ticket #417)

--HG--
extra : rebase_source : 37bb9de5574e1f7b4f288192eaa3c70a2ae350ca

16 years agonumpy.pxd: add NPY_UINT64 and family
Mark Lodato [Fri, 16 Oct 2009 23:38:02 +0000 (19:38 -0400)]
numpy.pxd: add NPY_UINT64 and family

This provides a fast way to check to see the data type of an ndarray.
For example, to check to see if an integer is 64 bits:

    PyArray_TYPE(a) == NPY_UINT64 or PyArray_TYPE(a) == NPY_INT64

16 years agonumpy.pxd: fix typo PyArray_ISISCONTIGUOUS
Mark Lodato [Fri, 16 Oct 2009 23:28:49 +0000 (19:28 -0400)]
numpy.pxd: fix typo PyArray_ISISCONTIGUOUS

16 years agoapplied pyximport patch from ticket 312
Stefan Behnel [Fri, 23 Oct 2009 16:56:48 +0000 (18:56 +0200)]
applied pyximport patch from ticket 312

16 years agofix cascade order of assignments for complete assignments within parallel assignments
Stefan Behnel [Fri, 23 Oct 2009 13:53:24 +0000 (15:53 +0200)]
fix cascade order of assignments for complete assignments within parallel assignments

16 years agomore .pxd cleanups
Stefan Behnel [Fri, 23 Oct 2009 13:39:32 +0000 (15:39 +0200)]
more .pxd cleanups

--HG--
rename : Cython/Includes/python_string.pxd => Cython/Includes/python_bytes.pxd
rename : Cython/Includes/python_parse.pxd => Cython/Includes/python_getargs.pxd

16 years agofix bug 409: use cascaded assignments also for the complete rhs when optimising paral...
Stefan Behnel [Fri, 23 Oct 2009 08:10:14 +0000 (10:10 +0200)]
fix bug 409: use cascaded assignments also for the complete rhs when optimising parallel assignments

16 years agoFix #250, Traceback method name is wrong for exceptions caught in methods
Robert Bradshaw [Fri, 23 Oct 2009 06:21:40 +0000 (23:21 -0700)]
Fix #250, Traceback method name is wrong for exceptions caught in methods

16 years agoFix ticket #215, explicit error for __getslice__, __delslice__ in Py3.
Robert Bradshaw [Fri, 23 Oct 2009 05:39:44 +0000 (22:39 -0700)]
Fix ticket #215, explicit error for __getslice__, __delslice__ in Py3.

16 years agofix in-place division in Py3
Stefan Behnel [Thu, 22 Oct 2009 20:34:15 +0000 (22:34 +0200)]
fix in-place division in Py3

16 years agoAnnotation work.
Robert Bradshaw [Thu, 22 Oct 2009 20:20:11 +0000 (13:20 -0700)]
Annotation work.

16 years agoRemove backwards incompatable change to string identifiers.
Robert Bradshaw [Thu, 22 Oct 2009 19:06:11 +0000 (12:06 -0700)]
Remove backwards incompatable change to string identifiers.

16 years agoanother merge
Robert Bradshaw [Thu, 22 Oct 2009 10:27:16 +0000 (03:27 -0700)]
another merge

16 years agoCpp exception tests.
Robert Bradshaw [Thu, 22 Oct 2009 10:15:34 +0000 (03:15 -0700)]
Cpp exception tests.

16 years agoFix cpp exception catching.
Robert Bradshaw [Thu, 22 Oct 2009 09:50:29 +0000 (02:50 -0700)]
Fix cpp exception catching.

16 years agoReturn value for check_const.
Robert Bradshaw [Thu, 22 Oct 2009 09:50:11 +0000 (02:50 -0700)]
Return value for check_const.

16 years agomerge
Stefan Behnel [Thu, 22 Oct 2009 09:26:16 +0000 (11:26 +0200)]
merge

16 years agofix intern() optimisation
Stefan Behnel [Thu, 22 Oct 2009 09:24:48 +0000 (11:24 +0200)]
fix intern() optimisation

16 years agoFix casts and negations in except clauses.
Robert Bradshaw [Thu, 22 Oct 2009 09:17:13 +0000 (02:17 -0700)]
Fix casts and negations in except clauses.

16 years agoMore cmp tests, refix C assignable types.
Robert Bradshaw [Thu, 22 Oct 2009 06:39:02 +0000 (23:39 -0700)]
More cmp tests, refix C assignable types.

16 years agomerge
Robert Bradshaw [Thu, 22 Oct 2009 06:20:22 +0000 (23:20 -0700)]
merge

16 years agoMore comparison fixes.
Robert Bradshaw [Thu, 22 Oct 2009 06:18:20 +0000 (23:18 -0700)]
More comparison fixes.

16 years agotiny cleanup
Stefan Behnel [Thu, 22 Oct 2009 06:12:32 +0000 (08:12 +0200)]
tiny cleanup

16 years agoFix comparison type deduction.
Robert Bradshaw [Thu, 22 Oct 2009 05:34:50 +0000 (22:34 -0700)]
Fix comparison type deduction.

16 years agomerge
Robert Bradshaw [Thu, 22 Oct 2009 04:25:36 +0000 (21:25 -0700)]
merge

16 years agoFix #431, intern() doesn't work for python strings with 0 characters.
Robert Bradshaw [Thu, 22 Oct 2009 04:25:12 +0000 (21:25 -0700)]
Fix #431, intern() doesn't work for python strings with 0 characters.

16 years agocleanup
Stefan Behnel [Wed, 21 Oct 2009 19:54:00 +0000 (21:54 +0200)]
cleanup

16 years agofix bug 430: make 'locals().items()' work
Stefan Behnel [Wed, 21 Oct 2009 19:44:42 +0000 (21:44 +0200)]
fix bug 430: make 'locals().items()' work

16 years agotest fixes
Stefan Behnel [Wed, 21 Oct 2009 19:43:53 +0000 (21:43 +0200)]
test fixes

16 years agofix bug 429: make 'locals' builtin overridable
Stefan Behnel [Wed, 21 Oct 2009 19:30:39 +0000 (21:30 +0200)]
fix bug 429: make 'locals' builtin overridable

16 years agonew test case for locals()
Stefan Behnel [Wed, 21 Oct 2009 18:47:08 +0000 (20:47 +0200)]
new test case for locals()

16 years agoextended test case
Stefan Behnel [Wed, 21 Oct 2009 18:43:30 +0000 (20:43 +0200)]
extended test case

16 years agotest case for locals(), ticket 429
Stefan Behnel [Wed, 21 Oct 2009 13:57:41 +0000 (15:57 +0200)]
test case for locals(), ticket 429

16 years agoextended test case
Stefan Behnel [Wed, 21 Oct 2009 10:09:05 +0000 (12:09 +0200)]
extended test case

16 years agodetect optimisable IndexNodes assignments in ref-count optimisation, but do not activ...
Stefan Behnel [Wed, 21 Oct 2009 09:55:08 +0000 (11:55 +0200)]
detect optimisable IndexNodes assignments in ref-count optimisation, but do not activate them for now

16 years agoPreliminary scons support (in Tools dir)
Dag Sverre Seljebotn [Wed, 21 Oct 2009 08:31:53 +0000 (10:31 +0200)]
Preliminary scons support (in Tools dir)

16 years agosmall refactoring and cleanup in try-except code generation
Stefan Behnel [Mon, 12 Oct 2009 11:48:15 +0000 (13:48 +0200)]
small refactoring and cleanup in try-except code generation

16 years agocleanup
Stefan Behnel [Mon, 12 Oct 2009 11:30:49 +0000 (13:30 +0200)]
cleanup

16 years agofix PyString_CheckExact definition in Py3, minor cleanup
Stefan Behnel [Mon, 12 Oct 2009 07:03:21 +0000 (09:03 +0200)]
fix PyString_CheckExact definition in Py3, minor cleanup

16 years agofreeze: Makefile: use -fno-strict-aliasing
Mark Lodato [Mon, 12 Oct 2009 04:17:47 +0000 (00:17 -0400)]
freeze: Makefile: use -fno-strict-aliasing

Python 2 cannot compile with strict aliasing, so the Cython modules
should really be compiled with -fno-strict-aliasing.  See Issue #395.

16 years agodo not check identifiers for decodability
Stefan Behnel [Sun, 11 Oct 2009 08:38:53 +0000 (10:38 +0200)]
do not check identifiers for decodability

16 years agotest fix after str changes
Stefan Behnel [Sun, 11 Oct 2009 08:32:16 +0000 (10:32 +0200)]
test fix after str changes

16 years agofix builtins after identifier changes
Stefan Behnel [Sun, 11 Oct 2009 08:26:56 +0000 (10:26 +0200)]
fix builtins after identifier changes

16 years agofix identifiers, simplify Python string cnames
Stefan Behnel [Sun, 11 Oct 2009 08:23:28 +0000 (10:23 +0200)]
fix identifiers, simplify Python string cnames

16 years agosafety fix
Stefan Behnel [Sun, 11 Oct 2009 07:59:44 +0000 (09:59 +0200)]
safety fix

16 years agoimplement proper encoding support for new str literals
Stefan Behnel [Sun, 11 Oct 2009 07:28:43 +0000 (09:28 +0200)]
implement proper encoding support for new str literals

16 years agodisable coercion from str->bytes, fix coercion from str->object
Stefan Behnel [Sat, 10 Oct 2009 19:45:42 +0000 (21:45 +0200)]
disable coercion from str->bytes, fix coercion from str->object

16 years agofix undefined symbol in Py<2.6 when assigning to bytes variables
Stefan Behnel [Sat, 10 Oct 2009 16:34:19 +0000 (18:34 +0200)]
fix undefined symbol in Py<2.6 when assigning to bytes variables

16 years agotest fixes
Stefan Behnel [Sat, 10 Oct 2009 15:06:02 +0000 (17:06 +0200)]
test fixes

16 years agofix char* coercion to other C types (such as void*)
Stefan Behnel [Sat, 10 Oct 2009 15:05:42 +0000 (17:05 +0200)]
fix char* coercion to other C types (such as void*)

16 years agoerror reporting on string type coercion
Stefan Behnel [Sat, 10 Oct 2009 14:50:31 +0000 (16:50 +0200)]
error reporting on string type coercion

16 years agoprovide 'str' type in Builtins.py
Stefan Behnel [Sat, 10 Oct 2009 13:46:35 +0000 (15:46 +0200)]
provide 'str' type in Builtins.py

16 years agoenable cleanup code generation in test runner
Stefan Behnel [Sat, 10 Oct 2009 11:32:02 +0000 (13:32 +0200)]
enable cleanup code generation in test runner

16 years agomerge
Stefan Behnel [Sat, 10 Oct 2009 11:28:30 +0000 (13:28 +0200)]
merge

16 years agodisable forked testing in Py3, doesn't currently work due to stdlib differences
Stefan Behnel [Sat, 10 Oct 2009 11:28:03 +0000 (13:28 +0200)]
disable forked testing in Py3, doesn't currently work due to stdlib differences

16 years agoPy3 test fix
Stefan Behnel [Sat, 10 Oct 2009 10:13:26 +0000 (12:13 +0200)]
Py3 test fix

16 years agoPy2.3 fix
Stefan Behnel [Sat, 10 Oct 2009 10:01:40 +0000 (12:01 +0200)]
Py2.3 fix