cython.git
15 years agoa few Py3k fixes in runtests.py
Lisandro Dalcin [Thu, 8 Oct 2009 23:30:07 +0000 (20:30 -0300)]
a few Py3k fixes in runtests.py

15 years agofix failing testcase in Py2 because of long suffix
Lisandro Dalcin [Thu, 8 Oct 2009 22:48:00 +0000 (19:48 -0300)]
fix failing testcase in Py2 because of long suffix

15 years agoGet rid of errors for typeof test.
Robert Bradshaw [Thu, 8 Oct 2009 04:50:09 +0000 (21:50 -0700)]
Get rid of errors for typeof test.

15 years agoFix for Python 2.3
Robert Bradshaw [Thu, 8 Oct 2009 04:47:14 +0000 (21:47 -0700)]
Fix for Python 2.3

15 years agoRemove string semantics change warning.
Robert Bradshaw [Thu, 8 Oct 2009 04:40:48 +0000 (21:40 -0700)]
Remove string semantics change warning.

15 years agoType inference tests.
Robert Bradshaw [Sun, 4 Oct 2009 05:37:02 +0000 (22:37 -0700)]
Type inference tests.

15 years agoType inference testing.
Robert Bradshaw [Sun, 4 Oct 2009 05:37:02 +0000 (22:37 -0700)]
Type inference testing.

15 years agocython.typeof special method
Robert Bradshaw [Sun, 4 Oct 2009 05:37:02 +0000 (22:37 -0700)]
cython.typeof special method

15 years agoBetter display for complex types
Robert Bradshaw [Sun, 4 Oct 2009 05:37:02 +0000 (22:37 -0700)]
Better display for complex types

15 years agoActual type inference.
Robert Bradshaw [Sun, 4 Oct 2009 05:37:02 +0000 (22:37 -0700)]
Actual type inference.

15 years agoType inference methods for expression nodes.
Robert Bradshaw [Sun, 4 Oct 2009 05:37:02 +0000 (22:37 -0700)]
Type inference methods for expression nodes.

15 years agoStart using unspecified types.
Robert Bradshaw [Sun, 4 Oct 2009 05:37:01 +0000 (22:37 -0700)]
Start using unspecified types.

15 years agoType inference: assignment marker visitor.
Robert Bradshaw [Sun, 4 Oct 2009 05:37:01 +0000 (22:37 -0700)]
Type inference: assignment marker visitor.

15 years agouse os.fork() when running doctests to prevent tested modules from staying in sys...
Stefan Behnel [Wed, 7 Oct 2009 18:23:55 +0000 (20:23 +0200)]
use os.fork() when running doctests to prevent tested modules from staying in sys.modules

15 years agomerge
Robert Bradshaw [Tue, 6 Oct 2009 11:09:22 +0000 (04:09 -0700)]
merge

15 years agoset module_is_main = 1 in main(), not globally
Mark Lodato [Tue, 6 Oct 2009 08:57:48 +0000 (01:57 -0700)]
set module_is_main = 1 in main(), not globally

From 3ebc39282aa9a8379069df12b0c8cc86a2ac8a25 Mon Sep 17 00:00:00 2001
Date: Mon, 5 Oct 2009 21:17:04 -0400
For --embed mode, always initialize the global variable
__pyx_module_is_main_MODULE to zero, even with --embed, and only set it
to one in main().  This would allow the same code to still work if
compiled as a shared library (main would be ignored) and also make the
code cleaner since all of the --embed stuff would be in one place.
---
 Cython/Compiler/ModuleNode.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

15 years agofix -Wextra warning for empty `else' body
Mark Lodato [Tue, 6 Oct 2009 08:54:49 +0000 (01:54 -0700)]
fix -Wextra warning for empty `else' body

From faba5d52ae82239f522c108b51fa18dbb1ae9a8b Mon Sep 17 00:00:00 2001
Date: Mon, 5 Oct 2009 22:49:07 -0400
The macros XDECREF, XGIVEREF, and XGOTREF used ";" to denote an empty if
and else body, but these raised the following warning when compiled with
"gcc -Wall -Wextra":

    warning: suggest braces around empty body in an `else' statement
---
 Cython/Compiler/ModuleNode.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

15 years agoBlatant ommision
Dag Sverre Seljebotn [Mon, 5 Oct 2009 13:22:38 +0000 (15:22 +0200)]
Blatant ommision

15 years agomerge
Dag Sverre Seljebotn [Mon, 5 Oct 2009 13:11:44 +0000 (15:11 +0200)]
merge

15 years agoFix wrong ctypedef testcase via autotestdict
Dag Sverre Seljebotn [Mon, 5 Oct 2009 13:09:01 +0000 (15:09 +0200)]
Fix wrong ctypedef testcase via autotestdict

15 years agoRename doctesthack -> autotestdict, and make it default
Dag Sverre Seljebotn [Mon, 5 Oct 2009 13:08:16 +0000 (15:08 +0200)]
Rename doctesthack -> autotestdict, and make it default

--HG--
rename : tests/errors/e_doctesthack.pyx => tests/errors/e_autotestdict.pyx
rename : tests/run/doctesthack.pyx => tests/run/autotestdict.pyx
rename : tests/run/doctesthack_skip.pyx => tests/run/autotestdict_skip.pyx

15 years agoFix doctesthack for cdef functions
Dag Sverre Seljebotn [Mon, 5 Oct 2009 13:04:47 +0000 (15:04 +0200)]
Fix doctesthack for cdef functions

15 years agomake cython_freeze.py executable
Mark Lodato [Sun, 4 Oct 2009 21:23:35 +0000 (17:23 -0400)]
make cython_freeze.py executable

15 years agosupport .py extension in cython_freeze
Stefan Behnel [Tue, 6 Oct 2009 07:22:46 +0000 (09:22 +0200)]
support .py extension in cython_freeze

15 years agotest for 'first assignment' algorithm
Stefan Behnel [Sun, 4 Oct 2009 19:44:03 +0000 (21:44 +0200)]
test for 'first assignment' algorithm

15 years agosupport 'and' operator and boolean attribute values in TreePath predicates
Stefan Behnel [Sun, 4 Oct 2009 19:11:22 +0000 (21:11 +0200)]
support 'and' operator and boolean attribute values in TreePath predicates

15 years agoextended TreePath test case, fix predicate evaluation
Stefan Behnel [Sun, 4 Oct 2009 16:56:10 +0000 (18:56 +0200)]
extended TreePath test case, fix predicate evaluation

15 years agofix left-over from earlier commit
Stefan Behnel [Sun, 4 Oct 2009 15:36:49 +0000 (17:36 +0200)]
fix left-over from earlier commit

15 years agoPEP-8-ified the decorator names for parse tree assertions, added a test case
Stefan Behnel [Sun, 4 Oct 2009 15:31:47 +0000 (17:31 +0200)]
PEP-8-ified the decorator names for parse tree assertions, added a test case

15 years agoparse tree test assertions for optimisations on loops and comprehensions
Stefan Behnel [Sun, 4 Oct 2009 14:42:16 +0000 (16:42 +0200)]
parse tree test assertions for optimisations on loops and comprehensions

15 years agotest support for parse tree path assertions
Stefan Behnel [Sun, 4 Oct 2009 14:38:40 +0000 (16:38 +0200)]
test support for parse tree path assertions

15 years agofix bug #372: reassignment to stop bound of for-range loop must not impact loop
Stefan Behnel [Sun, 4 Oct 2009 12:43:22 +0000 (14:43 +0200)]
fix bug #372: reassignment to stop bound of for-range loop must not impact loop

15 years agofix temp var leak in for-range to for-from transformation
Stefan Behnel [Sun, 4 Oct 2009 12:42:13 +0000 (14:42 +0200)]
fix temp var leak in for-range to for-from transformation

15 years agocomment
Stefan Behnel [Sun, 4 Oct 2009 12:12:04 +0000 (14:12 +0200)]
comment

15 years agocleanup
Stefan Behnel [Sun, 4 Oct 2009 11:54:55 +0000 (13:54 +0200)]
cleanup

15 years agomerged '--embed' fix from cython-devel
Stefan Behnel [Sun, 4 Oct 2009 10:22:39 +0000 (12:22 +0200)]
merged '--embed' fix from cython-devel

15 years agomerge
Stefan Behnel [Sun, 4 Oct 2009 07:38:57 +0000 (09:38 +0200)]
merge

15 years agooptimise dict([ (x,y) for x,y in ... ]) into dict comprehension
Stefan Behnel [Sun, 4 Oct 2009 07:31:54 +0000 (09:31 +0200)]
optimise dict([ (x,y) for x,y in ... ]) into dict comprehension

15 years agotiny helper class for replacing all occurrences of a node in a subtree
Stefan Behnel [Sun, 4 Oct 2009 07:29:28 +0000 (09:29 +0200)]
tiny helper class for replacing all occurrences of a node in a subtree

15 years agocleanup
Robert Bradshaw [Sun, 4 Oct 2009 04:26:44 +0000 (21:26 -0700)]
cleanup

15 years agoFix for embed and freeze which were broken by #216.
Robert Bradshaw [Sun, 4 Oct 2009 04:09:58 +0000 (21:09 -0700)]
Fix for embed and freeze which were broken by #216.

15 years agomerge
Dag Sverre Seljebotn [Sat, 3 Oct 2009 16:28:48 +0000 (18:28 +0200)]
merge

15 years agoMove nodes to exprnodes
Dag Sverre Seljebotn [Sat, 3 Oct 2009 16:28:00 +0000 (18:28 +0200)]
Move nodes to exprnodes

15 years agomerge
Dag Sverre Seljebotn [Sat, 3 Oct 2009 08:10:53 +0000 (10:10 +0200)]
merge

15 years agosome nogil declarations in numpy.pxd
Dag Sverre Seljebotn [Sat, 3 Oct 2009 08:10:39 +0000 (10:10 +0200)]
some nogil declarations in numpy.pxd

15 years agoFix #384
Dag Sverre Seljebotn [Thu, 1 Oct 2009 18:53:54 +0000 (20:53 +0200)]
Fix #384

15 years agodoctesthack directive
Dag Sverre Seljebotn [Thu, 1 Oct 2009 11:55:32 +0000 (13:55 +0200)]
doctesthack directive

15 years agodoctesthack directive works for global functions
Dag Sverre Seljebotn [Thu, 1 Oct 2009 10:52:44 +0000 (12:52 +0200)]
doctesthack directive works for global functions

15 years agoFunctionality for only allowing directives in certain areas
Dag Sverre Seljebotn [Thu, 1 Oct 2009 09:35:14 +0000 (11:35 +0200)]
Functionality for only allowing directives in certain areas

15 years agoSome further work on numpy.pxd that I needed
Dag Sverre Seljebotn [Wed, 30 Sep 2009 18:28:34 +0000 (20:28 +0200)]
Some further work on numpy.pxd that I needed

15 years ago-devel mergeback
Robert Bradshaw [Sun, 27 Sep 2009 06:05:04 +0000 (23:05 -0700)]
-devel mergeback

15 years agoBump version number, release 0.11.3.
Robert Bradshaw [Sun, 27 Sep 2009 05:30:33 +0000 (22:30 -0700)]
Bump version number, release 0.11.3.

15 years agoAdded tag 0.11.3 for changeset 7c695fe49fd6
Robert Bradshaw [Sun, 27 Sep 2009 05:30:23 +0000 (22:30 -0700)]
Added tag 0.11.3 for changeset 7c695fe49fd6

15 years agobump version number 0.11.3
Robert Bradshaw [Sat, 26 Sep 2009 07:00:13 +0000 (00:00 -0700)]
bump version number

15 years agoMissing items in MANIFEST.in
Robert Bradshaw [Sat, 26 Sep 2009 06:56:58 +0000 (23:56 -0700)]
Missing items in MANIFEST.in

15 years agoVersion number 0.11.3.rc0
Robert Bradshaw [Fri, 25 Sep 2009 09:17:36 +0000 (02:17 -0700)]
Version number 0.11.3.rc0

15 years agoAdded tag 0.11.3.rc0 for changeset eb00d00a73c1
Robert Bradshaw [Fri, 25 Sep 2009 09:16:58 +0000 (02:16 -0700)]
Added tag 0.11.3.rc0 for changeset eb00d00a73c1

15 years agoEnable profile tests. 0.11.3.rc0
Robert Bradshaw [Fri, 25 Sep 2009 09:15:10 +0000 (02:15 -0700)]
Enable profile tests.

15 years agoTurn of profiling by default, rename macro.
Robert Bradshaw [Fri, 25 Sep 2009 09:12:53 +0000 (02:12 -0700)]
Turn of profiling by default, rename macro.

15 years agoBetter check for broken NumPy install
Dag Sverre Seljebotn [Fri, 25 Sep 2009 07:53:32 +0000 (09:53 +0200)]
Better check for broken NumPy install

15 years agonumpy.pxd: Old iteration method did not iterate dtype in order (fixes #371)
Dag Sverre Seljebotn [Fri, 25 Sep 2009 07:45:24 +0000 (09:45 +0200)]
numpy.pxd: Old iteration method did not iterate dtype in order (fixes #371)

15 years agoFix refnanny string literal
Dag Sverre Seljebotn [Fri, 25 Sep 2009 07:11:20 +0000 (09:11 +0200)]
Fix refnanny string literal

15 years agopyximport: parse distutils config files (except local setup.cfg)
Lisandro Dalcin [Thu, 24 Sep 2009 21:42:00 +0000 (18:42 -0300)]
pyximport: parse distutils config files (except local setup.cfg)

15 years agoFailing numpy.pxd dtype serialization testcase
Dag Sverre Seljebotn [Thu, 24 Sep 2009 19:50:25 +0000 (21:50 +0200)]
Failing numpy.pxd dtype serialization testcase

15 years ago0.11.3 beta
Robert Bradshaw [Tue, 22 Sep 2009 09:13:13 +0000 (02:13 -0700)]
0.11.3 beta

15 years agoSome fixes for OS X 10.6
Robert Bradshaw [Tue, 22 Sep 2009 09:12:13 +0000 (02:12 -0700)]
Some fixes for OS X 10.6

15 years agoString literal warning.
Robert Bradshaw [Tue, 22 Sep 2009 07:59:48 +0000 (00:59 -0700)]
String literal warning.

15 years agomake trace unlikely
Robert Bradshaw [Tue, 22 Sep 2009 07:05:42 +0000 (00:05 -0700)]
make trace unlikely

15 years agomerge
Robert Bradshaw [Tue, 22 Sep 2009 06:06:56 +0000 (23:06 -0700)]
merge

15 years agosomewhat hackish fix for supporting not() in TreePath - needs to be reconsidered ...
Stefan Behnel [Fri, 18 Sep 2009 13:01:14 +0000 (15:01 +0200)]
somewhat hackish fix for supporting not() in TreePath - needs to be reconsidered ...

15 years agosupport attribute value selection in TreePath
Stefan Behnel [Fri, 18 Sep 2009 06:25:16 +0000 (08:25 +0200)]
support attribute value selection in TreePath

15 years agorolled back accidentally committed files
Stefan Behnel [Fri, 18 Sep 2009 06:16:51 +0000 (08:16 +0200)]
rolled back accidentally committed files

15 years agosimpler test
Stefan Behnel [Fri, 18 Sep 2009 06:08:52 +0000 (08:08 +0200)]
simpler test

15 years agoTreePath implementation for selecting nodes from the code tree
Stefan Behnel [Fri, 18 Sep 2009 06:02:46 +0000 (08:02 +0200)]
TreePath implementation for selecting nodes from the code tree

15 years agotest for T370
Stefan Behnel [Wed, 16 Sep 2009 18:33:20 +0000 (20:33 +0200)]
test for T370

15 years agofix C-API exception setter declarations to let them actually raise the exceptions
Stefan Behnel [Wed, 16 Sep 2009 13:50:00 +0000 (15:50 +0200)]
fix C-API exception setter declarations to let them actually raise the exceptions

15 years agofix C-API exception setter declarations to let them actually raise the exceptions
Stefan Behnel [Wed, 16 Sep 2009 13:50:00 +0000 (15:50 +0200)]
fix C-API exception setter declarations to let them actually raise the exceptions

15 years agoremove redundant transformation run
Stefan Behnel [Tue, 15 Sep 2009 12:26:45 +0000 (14:26 +0200)]
remove redundant transformation run

15 years agoalways optimise tuple(some_list), not only for literals
Stefan Behnel [Tue, 15 Sep 2009 12:12:40 +0000 (14:12 +0200)]
always optimise tuple(some_list), not only for literals

15 years agotest and fix for unicode.encode() transformation
Stefan Behnel [Tue, 15 Sep 2009 11:26:07 +0000 (13:26 +0200)]
test and fix for unicode.encode() transformation

15 years agofix copy+paste bug
Stefan Behnel [Tue, 15 Sep 2009 09:12:31 +0000 (11:12 +0200)]
fix copy+paste bug

15 years agofix merging keyword arguments in compiler directive decorators
Stefan Behnel [Tue, 15 Sep 2009 06:59:58 +0000 (08:59 +0200)]
fix merging keyword arguments in compiler directive decorators

15 years agomerge
Stefan Behnel [Tue, 15 Sep 2009 06:31:51 +0000 (08:31 +0200)]
merge

15 years agoallow splitting compiler annotation decorators as Python only allows 255 args
Stefan Behnel [Tue, 15 Sep 2009 06:31:37 +0000 (08:31 +0200)]
allow splitting compiler annotation decorators as Python only allows 255 args

15 years agomerge
Robert Bradshaw [Tue, 15 Sep 2009 01:56:23 +0000 (18:56 -0700)]
merge

15 years agomerged latest cython-devel
Lisandro Dalcin [Mon, 14 Sep 2009 16:13:16 +0000 (13:13 -0300)]
merged latest cython-devel

15 years agoPy2.3 and eval.h: include C header in proto section of pyexec_utility_code
Lisandro Dalcin [Mon, 14 Sep 2009 16:09:56 +0000 (13:09 -0300)]
Py2.3 and eval.h: include C header in proto section of pyexec_utility_code

15 years agouse iterative control flow graph traversal instead of recursion to prevent stack...
Stefan Behnel [Sun, 13 Sep 2009 10:57:53 +0000 (12:57 +0200)]
use iterative control flow graph traversal instead of recursion to prevent stack overflow

15 years agomerged latest cython-devel
Stefan Behnel [Sat, 12 Sep 2009 16:38:46 +0000 (18:38 +0200)]
merged latest cython-devel

15 years agoPy2.3 does not automatically include eval.h in Python.h
Stefan Behnel [Sat, 12 Sep 2009 16:37:01 +0000 (18:37 +0200)]
Py2.3 does not automatically include eval.h in Python.h

15 years agopartial backport from cython-unstable: keep Python literals from loosing their type...
Stefan Behnel [Sat, 12 Sep 2009 11:58:42 +0000 (13:58 +0200)]
partial backport from cython-unstable: keep Python literals from loosing their type during type analysis

15 years agooptimise unicode.encode() call with constant encoding parameters
Stefan Behnel [Sat, 12 Sep 2009 11:54:49 +0000 (13:54 +0200)]
optimise unicode.encode() call with constant encoding parameters

15 years agomake sure Python strings (and other Python literals) do not loose their type during...
Stefan Behnel [Sat, 12 Sep 2009 11:54:21 +0000 (13:54 +0200)]
make sure Python strings (and other Python literals) do not loose their type during type analysis

15 years agomake sure error reporting doesn't just fail on broken code containin unicode
Stefan Behnel [Sat, 12 Sep 2009 11:11:47 +0000 (13:11 +0200)]
make sure error reporting doesn't just fail on broken code containin unicode

15 years agoPython 3 fixes
Robert Bradshaw [Sat, 12 Sep 2009 02:10:18 +0000 (19:10 -0700)]
Python 3 fixes

15 years agomerge from latest cython-devel
Stefan Behnel [Fri, 11 Sep 2009 21:02:18 +0000 (23:02 +0200)]
merge from latest cython-devel

15 years agosupport conversion between Python byte strings and unsigned char*
Stefan Behnel [Fri, 11 Sep 2009 20:59:36 +0000 (22:59 +0200)]
support conversion between Python byte strings and unsigned char*

15 years agosupport conversion between Python byte strings and unsigned char*
Stefan Behnel [Fri, 11 Sep 2009 20:55:16 +0000 (22:55 +0200)]
support conversion between Python byte strings and unsigned char*

15 years agoenabled working tests
Stefan Behnel [Fri, 11 Sep 2009 19:05:20 +0000 (21:05 +0200)]
enabled working tests

15 years agoenabled working tests
Stefan Behnel [Fri, 11 Sep 2009 19:04:59 +0000 (21:04 +0200)]
enabled working tests