platform/upstream/python-cython.git
12 years agoPyPy compile fix for PyLong conversion
Stefan Behnel [Tue, 6 Nov 2012 19:26:42 +0000 (20:26 +0100)]
PyPy compile fix for PyLong conversion

12 years agowork around for exception output change in Py3.4
Stefan Behnel [Tue, 6 Nov 2012 09:12:04 +0000 (10:12 +0100)]
work around for exception output change in Py3.4

12 years agodisable auto_cpdef for stdlib compilation - too many failures
Stefan Behnel [Tue, 6 Nov 2012 08:22:42 +0000 (09:22 +0100)]
disable auto_cpdef for stdlib compilation - too many failures

12 years agochangelog comment
Stefan Behnel [Tue, 6 Nov 2012 08:18:44 +0000 (09:18 +0100)]
changelog comment

12 years agofix initial module registration for (nested) packages
Stefan Behnel [Mon, 5 Nov 2012 21:14:50 +0000 (22:14 +0100)]
fix initial module registration for (nested) packages

12 years agohandle one more error in cythonize() when ignore-failures mode is requested
Stefan Behnel [Mon, 5 Nov 2012 20:23:06 +0000 (21:23 +0100)]
handle one more error in cythonize() when ignore-failures mode is requested

12 years agomore special casing of stdlib modules
Stefan Behnel [Sun, 4 Nov 2012 20:36:48 +0000 (21:36 +0100)]
more special casing of stdlib modules

12 years agoprevent auto_cpdef from breaking module-level lambdas
Stefan Behnel [Sun, 4 Nov 2012 19:26:39 +0000 (20:26 +0100)]
prevent auto_cpdef from breaking module-level lambdas

12 years agomore special casing of stdlib modules
Stefan Behnel [Sun, 4 Nov 2012 19:25:08 +0000 (20:25 +0100)]
more special casing of stdlib modules

12 years agomore special casing of stdlib modules, make sure we enable function 'binding'
Stefan Behnel [Sun, 4 Nov 2012 18:36:18 +0000 (19:36 +0100)]
more special casing of stdlib modules, make sure we enable function 'binding'

12 years agomore special casing of stdlib modules
Stefan Behnel [Sun, 4 Nov 2012 18:31:44 +0000 (19:31 +0100)]
more special casing of stdlib modules

12 years agoextended stdlib compilation script that special cases some tricky modules
Stefan Behnel [Sun, 4 Nov 2012 13:22:04 +0000 (14:22 +0100)]
extended stdlib compilation script that special cases some tricky modules

12 years agoadded script to compile the CPython stdlib
Stefan Behnel [Sun, 4 Nov 2012 09:58:56 +0000 (10:58 +0100)]
added script to compile the CPython stdlib

12 years agomerged 0.17 branch into master
Stefan Behnel [Sun, 4 Nov 2012 09:21:11 +0000 (10:21 +0100)]
merged 0.17 branch into master

12 years agoadded changelog file
Stefan Behnel [Sun, 4 Nov 2012 09:20:22 +0000 (10:20 +0100)]
added changelog file

12 years agoreduce code overhead for tuple constants by using PyTuple_Pack() instead of step...
Stefan Behnel [Sun, 4 Nov 2012 08:17:53 +0000 (09:17 +0100)]
reduce code overhead for tuple constants by using PyTuple_Pack() instead of step-by-step tuple construction code

12 years agoremoved useless copy&paste code from test
Stefan Behnel [Sat, 3 Nov 2012 23:13:14 +0000 (00:13 +0100)]
removed useless copy&paste code from test

12 years agomerged 0.17 branch into master
Stefan Behnel [Sat, 3 Nov 2012 23:10:01 +0000 (00:10 +0100)]
merged 0.17 branch into master

12 years agofix early module registering by using FQMN instead of plain module name, added test...
Stefan Behnel [Sat, 3 Nov 2012 23:09:34 +0000 (00:09 +0100)]
fix early module registering by using FQMN instead of plain module name, added test for init-time reloading of modules in packages

12 years agomerged 0.17 branch into master
Stefan Behnel [Sat, 3 Nov 2012 22:39:15 +0000 (23:39 +0100)]
merged 0.17 branch into master

12 years agoadded test for self-reimport at module init time
Stefan Behnel [Sat, 3 Nov 2012 22:36:25 +0000 (23:36 +0100)]
added test for self-reimport at module init time

--HG--
extra : transplant_source : Y%1C%3A%07%2C%60%B0%F0.%EA%B1%23%3F%0E%20%89%13%C5%C24

12 years agoadded test for self-reimport at module init time
Stefan Behnel [Sat, 3 Nov 2012 22:36:25 +0000 (23:36 +0100)]
added test for self-reimport at module init time

12 years agoMerge branch 'bugs'
Robert Bradshaw [Sat, 3 Nov 2012 22:26:51 +0000 (15:26 -0700)]
Merge branch 'bugs'

12 years agoFix destructor name computation in the face of namespace template args.
Robert Bradshaw [Sat, 3 Nov 2012 22:22:16 +0000 (15:22 -0700)]
Fix destructor name computation in the face of namespace template args.

12 years agoalways insert the module into sys.modules right after creating it in Py3 (Py2 does...
Stefan Behnel [Sat, 3 Nov 2012 22:21:02 +0000 (23:21 +0100)]
always insert the module into sys.modules right after creating it in Py3 (Py2 does it for us)

--HG--
extra : transplant_source : %F9%FF%8Ai%99OV%BFd%F7%147%19pm%5D%DF%98%D4%FC

12 years agoalways insert the module into sys.modules right after creating it in Py3 (Py2 does...
Stefan Behnel [Sat, 3 Nov 2012 22:21:02 +0000 (23:21 +0100)]
always insert the module into sys.modules right after creating it in Py3 (Py2 does it for us)

12 years agono need to use a long in __Pyx_Import() when an int will do
Stefan Behnel [Sat, 3 Nov 2012 21:04:24 +0000 (22:04 +0100)]
no need to use a long in __Pyx_Import() when an int will do

12 years agoin Py3.3, use new PyImport_ImportModuleLevelObject() C-API function instead of equiva...
Stefan Behnel [Sat, 3 Nov 2012 21:00:12 +0000 (22:00 +0100)]
in Py3.3, use new PyImport_ImportModuleLevelObject() C-API function instead of equivalent Python call to __import__()

12 years agomoved helper function __Pyx_Import() into ImportExport.c utility code file
Stefan Behnel [Sat, 3 Nov 2012 20:40:01 +0000 (21:40 +0100)]
moved helper function __Pyx_Import() into ImportExport.c utility code file

12 years agoMerge remote-tracking branch 'remotes/origin/0.17'
Robert Bradshaw [Thu, 1 Nov 2012 08:03:21 +0000 (01:03 -0700)]
Merge remote-tracking branch 'remotes/origin/0.17'

12 years agoMove nested classes helper file.
Robert Bradshaw [Thu, 1 Nov 2012 06:50:33 +0000 (23:50 -0700)]
Move nested classes helper file.

12 years agoTest of last two fixes.
Robert Bradshaw [Thu, 1 Nov 2012 05:59:05 +0000 (22:59 -0700)]
Test of last two fixes.

12 years agoFix type names as arg names for int types.
Robert Bradshaw [Thu, 1 Nov 2012 05:58:43 +0000 (22:58 -0700)]
Fix type names as arg names for int types.

12 years agoFix using non-encoded strings as identifiers.
Robert Bradshaw [Thu, 1 Nov 2012 05:47:03 +0000 (22:47 -0700)]
Fix using non-encoded strings as identifiers.

12 years agoSwap args for lhs const overflow check.
Robert Bradshaw [Wed, 31 Oct 2012 18:56:16 +0000 (11:56 -0700)]
Swap args for lhs const overflow check.

12 years agoMerge branch 'overflow'
Robert Bradshaw [Wed, 31 Oct 2012 17:42:15 +0000 (10:42 -0700)]
Merge branch 'overflow'

12 years agoMore warning suppression, formatting.
Robert Bradshaw [Tue, 30 Oct 2012 20:57:20 +0000 (13:57 -0700)]
More warning suppression, formatting.

12 years agomerge
Stefan Behnel [Tue, 30 Oct 2012 16:26:55 +0000 (17:26 +0100)]
merge

12 years agofix pure Python test
Stefan Behnel [Tue, 30 Oct 2012 16:12:22 +0000 (17:12 +0100)]
fix pure Python test

--HG--
extra : rebase_source : 8127709bcb8f2d8f6cfd91a1e46b16dcb7734765

12 years agofix pure Python test
Stefan Behnel [Tue, 30 Oct 2012 16:12:22 +0000 (17:12 +0100)]
fix pure Python test

12 years agoMerge branch 'bugs' into main_master
Robert Bradshaw [Tue, 30 Oct 2012 08:11:55 +0000 (01:11 -0700)]
Merge branch 'bugs' into main_master

12 years agoNested class tests.
Robert Bradshaw [Tue, 30 Oct 2012 08:07:48 +0000 (01:07 -0700)]
Nested class tests.

12 years agoFix non-template nested class declarations.
Robert Bradshaw [Tue, 30 Oct 2012 08:07:20 +0000 (01:07 -0700)]
Fix non-template nested class declarations.

12 years agoAdd array cimport test.
Robert Bradshaw [Tue, 30 Oct 2012 07:21:03 +0000 (00:21 -0700)]
Add array cimport test.

12 years agoFix cpython.array declaration order.
Robert Bradshaw [Tue, 30 Oct 2012 07:19:54 +0000 (00:19 -0700)]
Fix cpython.array declaration order.

12 years agofix exclusion comparison in cythonize()
Stefan Behnel [Mon, 29 Oct 2012 22:47:08 +0000 (23:47 +0100)]
fix exclusion comparison in cythonize()

--HG--
extra : rebase_source : d7e8fd6a1d192a73dfac8c38a502dda52be14899

12 years agofix exclusion comparison in cythonize()
Stefan Behnel [Mon, 29 Oct 2012 22:47:08 +0000 (23:47 +0100)]
fix exclusion comparison in cythonize()

12 years agofix parser crash
Stefan Behnel [Mon, 29 Oct 2012 22:46:21 +0000 (23:46 +0100)]
fix parser crash

--HG--
extra : rebase_source : ac66b38753ea5b4ea9d47ff475ebbf33b19b7c49

12 years agofix parser crash
Stefan Behnel [Mon, 29 Oct 2012 22:46:21 +0000 (23:46 +0100)]
fix parser crash

12 years agodelete broken C output file on compiler failures in trial&error mode
Stefan Behnel [Mon, 29 Oct 2012 17:23:08 +0000 (18:23 +0100)]
delete broken C output file on compiler failures in trial&error mode

12 years agodelete broken C output file on compiler failures in trial&error mode
Stefan Behnel [Mon, 29 Oct 2012 17:23:08 +0000 (18:23 +0100)]
delete broken C output file on compiler failures in trial&error mode

--HG--
extra : rebase_source : 183045da113cc86375e2dcd358825cdcc4907f5d

12 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

12 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()

12 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

12 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

12 years agoOverflow check docs.
Robert Bradshaw [Thu, 25 Oct 2012 07:17:22 +0000 (00:17 -0700)]
Overflow check docs.

12 years agoLeft shift overflow guards.
Robert Bradshaw [Thu, 25 Oct 2012 07:11:07 +0000 (00:11 -0700)]
Left shift overflow guards.

12 years ago(Cheaper) overflow check for const rhs.
Robert Bradshaw [Thu, 25 Oct 2012 06:40:57 +0000 (23:40 -0700)]
(Cheaper) overflow check for const rhs.

12 years agoAllow constant typecasts.
Robert Bradshaw [Thu, 25 Oct 2012 06:40:37 +0000 (23:40 -0700)]
Allow constant typecasts.

12 years agoOverflow initialization checking
Robert Bradshaw [Thu, 25 Oct 2012 05:48:55 +0000 (22:48 -0700)]
Overflow initialization checking

also adds error checking for init utility code blocks

12 years agoOverflow check tests.
Robert Bradshaw [Sat, 29 Sep 2012 05:56:22 +0000 (22:56 -0700)]
Overflow check tests.

12 years agocontrol overflow with a directive
Robert Bradshaw [Thu, 2 Aug 2012 03:21:53 +0000 (20:21 -0700)]
control overflow with a directive

12 years agoFirst pass at int overflow checking.
Robert Bradshaw [Tue, 31 Jul 2012 07:14:56 +0000 (00:14 -0700)]
First pass at int overflow checking.

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

--HG--
extra : rebase_source : 2998d32280e8f7becd6a0993adaea565d2e986fd

12 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

--HG--
extra : rebase_source : c60675a974587296bae4465b4001b610dda49edd

12 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()

--HG--
extra : rebase_source : 0160d58813fd19a43b5d6cc51fba2328d8ea72e0

12 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

--HG--
extra : rebase_source : d0d280010b14401c44e70a279dc9066031ba7de7

12 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

--HG--
extra : rebase_source : d415ce5d3dc3a3504b2bf4e8fc1ffd0cd16de64e

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

12 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

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

12 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

12 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

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

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

12 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

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

12 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

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

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

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

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

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

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

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

12 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

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

12 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

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

12 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

12 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

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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