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

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

15 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.

15 years agofreeze: Makefile: add target to build README.html
Mark Lodato [Mon, 5 Oct 2009 02:36:40 +0000 (22:36 -0400)]
freeze: Makefile: add target to build README.html

Add a target (with alias "html") to build README.html from README.txt
using rst2html.  This is not run by default.

15 years agofreeze: rename README.rst to README.txt
Mark Lodato [Mon, 5 Oct 2009 02:34:48 +0000 (22:34 -0400)]
freeze: rename README.rst to README.txt

The only reason I had a "rst" extension was so that GitHub would pick it
up.

--HG--
rename : Demos/freeze/README.rst => Demos/freeze/README.txt

15 years agofreeze: add --pymain example
Mark Lodato [Mon, 5 Oct 2009 00:07:28 +0000 (20:07 -0400)]
freeze: add --pymain example

Add an example of building a --pymain Python interpreter to the README
and to the Makefile.

15 years agofreeze: add -p option for calling Py_Main()
Mark Lodato [Mon, 5 Oct 2009 00:03:20 +0000 (20:03 -0400)]
freeze: add -p option for calling Py_Main()

Add an option to build a regular interpreter, calling Py_Main(), rather
than running the first module as __main__.

15 years agofreeze: remove blank lines from beginning and end
Mark Lodato [Mon, 5 Oct 2009 00:02:03 +0000 (20:02 -0400)]
freeze: remove blank lines from beginning and end

15 years agofreeze: add -o option for setting output file
Mark Lodato [Mon, 5 Oct 2009 00:01:27 +0000 (20:01 -0400)]
freeze: add -o option for setting output file

15 years agofreeze: use optparse to parse arguments
Mark Lodato [Mon, 5 Oct 2009 00:00:32 +0000 (20:00 -0400)]
freeze: use optparse to parse arguments

15 years agofreeze: Makefile: flags from distutils.sysconfig
Mark Lodato [Sun, 4 Oct 2009 23:39:07 +0000 (19:39 -0400)]
freeze: Makefile: flags from distutils.sysconfig

Instead of hard-coding the compiler flags and libraries, extract them
from distutils.sysconfig.

15 years agofreeze: README: fix typos and mistakes in example
Mark Lodato [Sun, 4 Oct 2009 23:32:43 +0000 (19:32 -0400)]
freeze: README: fix typos and mistakes in example

I mis-spelled "combinatorics", and I forgot to use the -c flag to gcc.

15 years agofreeze: Makefile: only clean specific C files
Mark Lodato [Sun, 4 Oct 2009 23:31:26 +0000 (19:31 -0400)]
freeze: Makefile: only clean specific C files

15 years agofreeze: remove mistaken semicolon
Mark Lodato [Sun, 4 Oct 2009 23:29:54 +0000 (19:29 -0400)]
freeze: remove mistaken semicolon

15 years agofreeze: fix cmath.pyx when run as __main__
Mark Lodato [Tue, 6 Oct 2009 01:37:12 +0000 (21:37 -0400)]
freeze: fix cmath.pyx when run as __main__

15 years agofreeze: fix Makefile's CYTHON path
Mark Lodato [Sun, 4 Oct 2009 22:45:27 +0000 (18:45 -0400)]
freeze: fix Makefile's CYTHON path

15 years agofreeze: rename cython_freeze.py to cython_freeze
Mark Lodato [Sat, 3 Oct 2009 19:55:55 +0000 (15:55 -0400)]
freeze: rename cython_freeze.py to cython_freeze

--HG--
rename : bin/cython_freeze.py => bin/cython_freeze

15 years agofreeze: in documentation, reference Demos/freeze
Mark Lodato [Sun, 4 Oct 2009 22:25:32 +0000 (18:25 -0400)]
freeze: in documentation, reference Demos/freeze

The files originally had README.rst in the top level and the examples in
the example directory, but now all are in Demos/freeze.

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

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

15 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

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

15 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

15 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.

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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

15 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.

15 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

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

15 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.

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

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

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

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

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

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

15 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.

15 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.

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

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

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

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

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

15 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.

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

15 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

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

15 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

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

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

15 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

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

15 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

15 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)

15 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

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

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

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

15 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

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

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

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

15 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*)

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

15 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)

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

15 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

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

15 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

15 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

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

15 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

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

15 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

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

15 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

15 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

15 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

15 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

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

15 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

15 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

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

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

15 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.

15 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

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

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

15 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

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

15 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

15 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)

15 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