platform/upstream/python-cython.git
11 years agosuppress compiler crashes in cythonize() trial&error mode
Stefan Behnel [Mon, 29 Oct 2012 17:08:09 +0000 (18:08 +0100)]
suppress compiler crashes in cythonize() trial&error mode

11 years agodisable some Cython syntax in .py compilation mode: typecasts, &..., sizeof()
Stefan Behnel [Mon, 29 Oct 2012 15:34:17 +0000 (16:34 +0100)]
disable some Cython syntax in .py compilation mode: typecasts, &..., sizeof()

11 years agofix compiler crash in optimiser dispatch code
Stefan Behnel [Mon, 29 Oct 2012 15:29:22 +0000 (16:29 +0100)]
fix compiler crash in optimiser dispatch code

11 years agoimplemented 'ignore compile failures' mode in cythonize() to do trial+error compilati...
Stefan Behnel [Mon, 29 Oct 2012 15:09:42 +0000 (16:09 +0100)]
implemented 'ignore compile failures' mode in cythonize() to do trial+error compilation of .py files

11 years agoFix typo in array test.
Robert Bradshaw [Fri, 12 Oct 2012 21:54:07 +0000 (14:54 -0700)]
Fix typo in array test.

11 years agobacked out docstring handling change - breaks too many things
Stefan Behnel [Fri, 12 Oct 2012 17:40:30 +0000 (19:40 +0200)]
backed out docstring handling change - breaks too many things

11 years agoBacked out changeset 3311f176703f
Stefan Behnel [Fri, 12 Oct 2012 17:37:13 +0000 (19:37 +0200)]
Backed out changeset 3311f176703f

11 years agoclean up new docstring handling code and fix compiler crash during Cython build
Stefan Behnel [Fri, 12 Oct 2012 17:31:52 +0000 (19:31 +0200)]
clean up new docstring handling code and fix compiler crash during Cython build

11 years agoMerge pull request #142 from mongi3/master
scoder [Fri, 12 Oct 2012 07:38:28 +0000 (00:38 -0700)]
Merge pull request #142 from mongi3/master

Added "--capi-reexport-cincludes" option

11 years agoMerge pull request #152 from Talanor/DocstringsError
scoder [Fri, 12 Oct 2012 07:30:42 +0000 (00:30 -0700)]
Merge pull request #152 from Talanor/DocstringsError

Fix error when the first statement of Module/Function/Class is a littera...

11 years agofix 'cython.compiled' flag
Stefan Behnel [Fri, 12 Oct 2012 07:23:14 +0000 (09:23 +0200)]
fix 'cython.compiled' flag

11 years agoFix error when the first statement of Module/Function/Class is a litteral string
Quentin Poirier [Thu, 11 Oct 2012 08:38:11 +0000 (10:38 +0200)]
Fix error when the first statement of Module/Function/Class is a litteral string
that does not end by a new line

11 years agoMerge pull request #151 from joonro/patch-1
scoder [Mon, 8 Oct 2012 08:12:06 +0000 (01:12 -0700)]
Merge pull request #151 from joonro/patch-1

Fixed a couple of typos in setup script

11 years agoFixed a couple of typos in setup script
Joon Ro [Mon, 8 Oct 2012 02:26:14 +0000 (21:26 -0500)]
Fixed a couple of typos in setup script

Made 'sources' a list of string(s), and also fixed a typo.

11 years agoFix specialization for varargs function signatures.
Robert Bradshaw [Fri, 5 Oct 2012 23:01:33 +0000 (16:01 -0700)]
Fix specialization for varargs function signatures.

11 years agoSupport __version__ attribute in pure compiled mode.
Robert Bradshaw [Thu, 4 Oct 2012 17:43:11 +0000 (10:43 -0700)]
Support __version__ attribute in pure compiled mode.

11 years agoFix __version__ import.
Robert Bradshaw [Thu, 4 Oct 2012 17:28:06 +0000 (10:28 -0700)]
Fix __version__ import.

11 years agoMove version to Shadow.py
Robert Bradshaw [Wed, 3 Oct 2012 20:08:22 +0000 (13:08 -0700)]
Move version to Shadow.py

11 years agosimplified some nonlocally_immutable() tests
Stefan Behnel [Fri, 28 Sep 2012 17:55:29 +0000 (19:55 +0200)]
simplified some nonlocally_immutable() tests

11 years agoliterals are always 'nonlocally immutable'
Stefan Behnel [Fri, 28 Sep 2012 17:38:50 +0000 (19:38 +0200)]
literals are always 'nonlocally immutable'

11 years agoavoid unnecessary safety temping of function arguments during coercions
Stefan Behnel [Fri, 28 Sep 2012 17:38:04 +0000 (19:38 +0200)]
avoid unnecessary safety temping of function arguments during coercions

11 years agoavoid unnecessary safety temping of function arguments that are builtins or read...
Stefan Behnel [Fri, 28 Sep 2012 16:22:15 +0000 (18:22 +0200)]
avoid unnecessary safety temping of function arguments that are builtins or read-only variables (e.g. extension types)

11 years agoadded dump_pos() method to Node class as a quick debugging way to figure out where...
Stefan Behnel [Fri, 28 Sep 2012 16:04:00 +0000 (18:04 +0200)]
added dump_pos() method to Node class as a quick debugging way to figure out where a node lives in the source code

11 years agoslightly extended test case
Stefan Behnel [Fri, 28 Sep 2012 14:47:38 +0000 (16:47 +0200)]
slightly extended test case

11 years agominor string type fix in refnanny
Stefan Behnel [Wed, 26 Sep 2012 19:59:14 +0000 (21:59 +0200)]
minor string type fix in refnanny

11 years agomake refnanny output easier to detect when used outside of doctests, print number...
Stefan Behnel [Wed, 26 Sep 2012 19:57:24 +0000 (21:57 +0200)]
make refnanny output easier to detect when used outside of doctests, print number of references leaked

11 years agoadd missing gotrefs() for PyPy code (currently irrelevant as refnanny does not work...
Stefan Behnel [Wed, 26 Sep 2012 19:23:29 +0000 (21:23 +0200)]
add missing gotrefs() for PyPy code (currently irrelevant as refnanny does not work in PyPy)

11 years agomerged 0.17 branch back into master
Stefan Behnel [Wed, 26 Sep 2012 17:18:31 +0000 (19:18 +0200)]
merged 0.17 branch back into master

11 years agoprepare release of 0.17.1 0.17.1
Stefan Behnel [Wed, 26 Sep 2012 16:47:14 +0000 (18:47 +0200)]
prepare release of 0.17.1

11 years agoError checking for NULL strides + tests
Mark Florisson [Sun, 23 Sep 2012 11:05:48 +0000 (12:05 +0100)]
Error checking for NULL strides + tests

11 years agomake memoryviews work when strides is NULL
Christoph Groth [Wed, 19 Sep 2012 05:58:44 +0000 (07:58 +0200)]
make memoryviews work when strides is NULL

11 years agomerged 0.17 branch back into master
Stefan Behnel [Tue, 25 Sep 2012 14:58:34 +0000 (16:58 +0200)]
merged 0.17 branch back into master

11 years agofix for refnanny C code in dict iteration: generate all GOTREFs before all coercions...
Stefan Behnel [Tue, 25 Sep 2012 14:58:16 +0000 (16:58 +0200)]
fix for refnanny C code in dict iteration: generate all GOTREFs before all coercions before all assignments to properly handle error cases

11 years agomerged 0.17 branch back into master
Stefan Behnel [Tue, 25 Sep 2012 14:11:55 +0000 (16:11 +0200)]
merged 0.17 branch back into master

11 years agofix ticket 790: reference leak during dict iteration
Stefan Behnel [Tue, 25 Sep 2012 14:04:05 +0000 (16:04 +0200)]
fix ticket 790: reference leak during dict iteration

11 years agoError checking for NULL strides + tests
Mark Florisson [Sun, 23 Sep 2012 11:05:48 +0000 (12:05 +0100)]
Error checking for NULL strides + tests

11 years agoMerge branch 'master' of https://github.com/cgroth/cython into _no_strides
Mark Florisson [Sun, 23 Sep 2012 10:03:58 +0000 (11:03 +0100)]
Merge branch 'master' of https://github.com/cgroth/cython into _no_strides

11 years agoAnother const test.
Robert Bradshaw [Wed, 19 Sep 2012 14:54:40 +0000 (07:54 -0700)]
Another const test.

11 years agomake memoryviews work when strides is NULL
Christoph Groth [Wed, 19 Sep 2012 05:58:44 +0000 (07:58 +0200)]
make memoryviews work when strides is NULL

11 years agoMerge branch 'const'
Robert Bradshaw [Wed, 19 Sep 2012 06:28:46 +0000 (23:28 -0700)]
Merge branch 'const'

11 years agoConst tests.
Robert Bradshaw [Wed, 19 Sep 2012 06:27:51 +0000 (23:27 -0700)]
Const tests.

11 years agoRudimentary const support.
Robert Bradshaw [Fri, 14 Sep 2012 07:37:50 +0000 (00:37 -0700)]
Rudimentary const support.

11 years agousage does not match the options
B. Clausius [Wed, 12 Sep 2012 12:36:05 +0000 (14:36 +0200)]
usage does not match the options

11 years agooptimise 'for in [...]' into 'for in (...)'
Stefan Behnel [Tue, 11 Sep 2012 20:34:21 +0000 (22:34 +0200)]
optimise 'for in [...]' into 'for in (...)'

11 years agowork around C compiler warnings about unused utility functions by registering the...
Stefan Behnel [Sun, 2 Sep 2012 19:16:55 +0000 (21:16 +0200)]
work around C compiler warnings about unused utility functions by registering the signature with the smallest dependency last

11 years agoMerge pull request #148 from BertrandBordage/master
scoder [Sun, 2 Sep 2012 17:48:40 +0000 (10:48 -0700)]
Merge pull request #148 from BertrandBordage/master

Fixes setup filename in Demos/Makefile.

11 years agoFixes setup filename in Demos/Makefile.
Bertrand Bordage [Sun, 2 Sep 2012 17:22:10 +0000 (20:22 +0300)]
Fixes setup filename in Demos/Makefile.

11 years agominor cleanups in test runner, flush output regularly to avoid incomplete output...
Stefan Behnel [Sun, 2 Sep 2012 07:33:57 +0000 (09:33 +0200)]
minor cleanups in test runner, flush output regularly to avoid incomplete output on crashes

11 years agoset master version to 0.18-pre
Stefan Behnel [Sun, 2 Sep 2012 07:32:50 +0000 (09:32 +0200)]
set master version to 0.18-pre

11 years agoprepare release of 0.17 final 0.17
Stefan Behnel [Sat, 1 Sep 2012 06:24:42 +0000 (08:24 +0200)]
prepare release of 0.17 final

11 years agofix PYTHONPATH handling for end-to-end tests
Stefan Behnel [Fri, 31 Aug 2012 11:22:02 +0000 (13:22 +0200)]
fix PYTHONPATH handling for end-to-end tests

11 years agoalways set CYTHON_FORMAT_SSIZE_T to 'z' on Py2.5+
Stefan Behnel [Fri, 31 Aug 2012 05:59:43 +0000 (07:59 +0200)]
always set CYTHON_FORMAT_SSIZE_T to 'z' on Py2.5+

11 years agouse '%lld' format for Py_ssize_t on Win64+MSVC if supported
Stefan Behnel [Fri, 31 Aug 2012 05:10:36 +0000 (07:10 +0200)]
use '%lld' format for Py_ssize_t on Win64+MSVC if supported

11 years agoMerge pull request #147 from cgohlke/patch-1
scoder [Fri, 31 Aug 2012 04:25:30 +0000 (21:25 -0700)]
Merge pull request #147 from cgohlke/patch-1

Fix "PyErr_Format + PY_FORMAT_SSIZE_T likely broken in Win64"

11 years agoUse CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:36:34 +0000 (16:36 -0700)]
Use CYTHON_FORMAT_SSIZE_T

11 years agoUse CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:30:28 +0000 (16:30 -0700)]
Use CYTHON_FORMAT_SSIZE_T

11 years agoUse CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:28:58 +0000 (16:28 -0700)]
Use CYTHON_FORMAT_SSIZE_T

11 years agoUse CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:27:46 +0000 (16:27 -0700)]
Use CYTHON_FORMAT_SSIZE_T

11 years agoUse CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:25:53 +0000 (16:25 -0700)]
Use CYTHON_FORMAT_SSIZE_T

11 years agoUse CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:23:38 +0000 (16:23 -0700)]
Use CYTHON_FORMAT_SSIZE_T

11 years agoDefine CYTHON_FORMAT_SSIZE_T for use in PyErr_Format and PyString_FromFormat
cgohlke [Thu, 30 Aug 2012 23:21:14 +0000 (16:21 -0700)]
Define CYTHON_FORMAT_SSIZE_T for use in PyErr_Format and PyString_FromFormat

11 years agoMerge pull request #146 from cgohlke/patch-4
scoder [Thu, 30 Aug 2012 20:57:21 +0000 (13:57 -0700)]
Merge pull request #146 from cgohlke/patch-4

Add '/openmp' flag when compiling Cpp code with msvc compilers

11 years agoAdd '/openmp' flag when compiling Cpp code with msvc compilers
cgohlke [Thu, 30 Aug 2012 20:33:51 +0000 (13:33 -0700)]
Add '/openmp' flag when compiling Cpp code with msvc compilers

11 years agoclean up and simplify signature matching test
Stefan Behnel [Thu, 30 Aug 2012 18:25:44 +0000 (20:25 +0200)]
clean up and simplify signature matching test

11 years agoadded some tests for the function signature override matcher
Stefan Behnel [Thu, 30 Aug 2012 12:19:39 +0000 (14:19 +0200)]
added some tests for the function signature override matcher

11 years agoprepare release of 0.17b4 0.17b4
Stefan Behnel [Thu, 30 Aug 2012 08:38:15 +0000 (10:38 +0200)]
prepare release of 0.17b4

11 years agoalso fix up keyword type checking function to allow Unicode strings
Stefan Behnel [Wed, 29 Aug 2012 21:50:41 +0000 (23:50 +0200)]
also fix up keyword type checking function to allow Unicode strings

11 years agorefactoring and rewrite of optional kw arguments parsing helper function to support...
Stefan Behnel [Wed, 29 Aug 2012 21:40:35 +0000 (23:40 +0200)]
refactoring and rewrite of optional kw arguments parsing helper function to support Unicode keyword arguments in Py2 (CPython supports them in Py2.6+)

11 years agoMerge pull request #145 from cgohlke/patch-1
Mark Florisson [Wed, 29 Aug 2012 20:48:48 +0000 (13:48 -0700)]
Merge pull request #145 from cgohlke/patch-1

Fix parallel/prange test failures on Windows

11 years agomove utility code inclusion from Name/AttributeNodes to the latest possible step...
Stefan Behnel [Wed, 29 Aug 2012 16:50:19 +0000 (18:50 +0200)]
move utility code inclusion from Name/AttributeNodes to the latest possible step in the pipeline (after removing it from declaration analysis)

11 years agoPyPy fix
Stefan Behnel [Tue, 28 Aug 2012 21:05:28 +0000 (23:05 +0200)]
PyPy fix

11 years agoalways instantiate exceptions directly when raising them, fix Py3 crash when an excep...
Stefan Behnel [Tue, 28 Aug 2012 20:49:02 +0000 (22:49 +0200)]
always instantiate exceptions directly when raising them, fix Py3 crash when an exception type does not create an exception instance (works in Py2, although not in PyPy)

11 years agoprevent utility code of overloaded function entries from accidentally being written...
Stefan Behnel [Tue, 28 Aug 2012 18:44:00 +0000 (20:44 +0200)]
prevent utility code of overloaded function entries from accidentally being written to the output file

11 years agoadded safety assertion to prevent utility code from overwriting that of other entries...
Stefan Behnel [Tue, 28 Aug 2012 18:42:23 +0000 (20:42 +0200)]
added safety assertion to prevent utility code from overwriting that of other entries with the same name

11 years agodisable pyregr.test_exceptions: crashes in infinite recursion test
Stefan Behnel [Tue, 28 Aug 2012 11:05:09 +0000 (13:05 +0200)]
disable pyregr.test_exceptions: crashes in infinite recursion test

11 years agotest runner: disable gdb testing/usage in PyPy
Stefan Behnel [Tue, 28 Aug 2012 04:43:12 +0000 (06:43 +0200)]
test runner: disable gdb testing/usage in PyPy

11 years agofix some PyPy glitches in __Pyx_Globals()
Stefan Behnel [Mon, 27 Aug 2012 18:46:45 +0000 (20:46 +0200)]
fix some PyPy glitches in __Pyx_Globals()

11 years agominor cleanup
Stefan Behnel [Mon, 27 Aug 2012 18:33:44 +0000 (20:33 +0200)]
minor cleanup

11 years agoimplement 1-arg exec()
Stefan Behnel [Mon, 27 Aug 2012 18:33:08 +0000 (20:33 +0200)]
implement 1-arg exec()

11 years agodeleted unnecessary helper code from Py2.6+ test
Stefan Behnel [Mon, 27 Aug 2012 18:26:54 +0000 (20:26 +0200)]
deleted unnecessary helper code from Py2.6+ test

11 years agomoved 'exec' and globals() utility code to new file Builtins.c
Stefan Behnel [Mon, 27 Aug 2012 18:11:00 +0000 (20:11 +0200)]
moved 'exec' and globals() utility code to new file Builtins.c

11 years agoRemove initialization of target index after #pragma omp parallel
cgohlke [Mon, 27 Aug 2012 15:39:25 +0000 (08:39 -0700)]
Remove initialization of target index after #pragma omp parallel

11 years agoreduce code redundancy in Py2/3 cleanup code setup
Stefan Behnel [Sun, 26 Aug 2012 12:33:39 +0000 (14:33 +0200)]
reduce code redundancy in Py2/3 cleanup code setup

11 years agowork around 'unused function __Pyx_ImportModule()' compiler warning
Stefan Behnel [Sat, 25 Aug 2012 22:54:01 +0000 (00:54 +0200)]
work around 'unused function __Pyx_ImportModule()' compiler warning

11 years agoclean up .format_code() usage in .load_as_string() method of UtilityCodeBase
Stefan Behnel [Sat, 25 Aug 2012 22:44:41 +0000 (00:44 +0200)]
clean up .format_code() usage in .load_as_string() method of UtilityCodeBase

11 years agofactored import/export utility code out into separate utility code file ImportExport.c
Stefan Behnel [Sat, 25 Aug 2012 21:56:22 +0000 (23:56 +0200)]
factored import/export utility code out into separate utility code file ImportExport.c

11 years agominor cleanup
Stefan Behnel [Sat, 25 Aug 2012 20:25:36 +0000 (22:25 +0200)]
minor cleanup

11 years agouse proper module.m_free() way to run module cleanup code in Py3, way after running...
Stefan Behnel [Sat, 25 Aug 2012 20:18:34 +0000 (22:18 +0200)]
use proper module.m_free() way to run module cleanup code in Py3, way after running atexit functions etc.

11 years agoclean up injection of RegisterModuleCleanup utility code
Stefan Behnel [Sat, 25 Aug 2012 19:39:22 +0000 (21:39 +0200)]
clean up injection of RegisterModuleCleanup utility code

11 years agoatexit._exithandlers is no longer available in Py3
Stefan Behnel [Sat, 25 Aug 2012 19:34:10 +0000 (21:34 +0200)]
atexit._exithandlers is no longer available in Py3

11 years agoimprove module cleanup safety a little by making Cython cleanup functions run last...
Stefan Behnel [Sat, 25 Aug 2012 16:26:25 +0000 (18:26 +0200)]
improve module cleanup safety a little by making Cython cleanup functions run last by atexit

11 years agomoved utility code for registering the module cleanup function into Cython/Utility...
Stefan Behnel [Sat, 25 Aug 2012 15:35:39 +0000 (17:35 +0200)]
moved utility code for registering the module cleanup function into Cython/Utility/ModuleSetupCode.c

11 years agodeleted dead code in test
Stefan Behnel [Sat, 25 Aug 2012 13:28:58 +0000 (15:28 +0200)]
deleted dead code in test

11 years agore-enable test_ctypes pyregr test, now disabled in Jenkins pyregr+stdlib test job
Stefan Behnel [Sat, 25 Aug 2012 10:37:11 +0000 (12:37 +0200)]
re-enable test_ctypes pyregr test, now disabled in Jenkins pyregr+stdlib test job

11 years agoextended test case
Stefan Behnel [Sat, 25 Aug 2012 09:58:52 +0000 (11:58 +0200)]
extended test case

11 years agoadded failing test for optimised float .conjugate() method
Stefan Behnel [Sat, 25 Aug 2012 07:01:41 +0000 (09:01 +0200)]
added failing test for optimised float .conjugate() method

11 years agominor cleanup
Stefan Behnel [Sat, 25 Aug 2012 05:39:29 +0000 (07:39 +0200)]
minor cleanup

11 years agoC comment fix in utility code
Stefan Behnel [Fri, 24 Aug 2012 20:04:54 +0000 (22:04 +0200)]
C comment fix in utility code

11 years agoPy3 test fix
Stefan Behnel [Fri, 24 Aug 2012 19:55:41 +0000 (21:55 +0200)]
Py3 test fix

11 years agoPyPy fix in exception reraising code
Stefan Behnel [Fri, 24 Aug 2012 19:53:41 +0000 (21:53 +0200)]
PyPy fix in exception reraising code