platform/upstream/python-cython.git
12 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.

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

12 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

12 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

12 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

12 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

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

12 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

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

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

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

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

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

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

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

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

12 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

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

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

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

12 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

12 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

12 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

12 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

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

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

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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

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

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

12 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

12 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

12 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

12 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

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

12 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

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

12 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

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

12 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

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

12 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

12 years agoimplement bare 'raise' statement outside of except blocks
Stefan Behnel [Fri, 24 Aug 2012 15:45:14 +0000 (17:45 +0200)]
implement bare 'raise' statement outside of except blocks

12 years agofix declaration of Python classes with names that shadow builtins
Stefan Behnel [Fri, 24 Aug 2012 14:35:00 +0000 (16:35 +0200)]
fix declaration of Python classes with names that shadow builtins

12 years agodisable pyregr test test_ioctl: crashes in pyregr+stdlib test runs
Stefan Behnel [Fri, 24 Aug 2012 13:54:35 +0000 (15:54 +0200)]
disable pyregr test test_ioctl: crashes in pyregr+stdlib test runs

12 years agoset initial __file__ value in pyregr test modules
Stefan Behnel [Fri, 24 Aug 2012 12:54:21 +0000 (14:54 +0200)]
set initial __file__ value in pyregr test modules

12 years agofix compiler crash during type inference when calling Python method of C int variable...
Stefan Behnel [Fri, 24 Aug 2012 06:31:10 +0000 (08:31 +0200)]
fix compiler crash during type inference when calling Python method of C int variable (found in Py3 pyregr test_long.py)

12 years agoshow 'no inc/dec in Python' warning only for ++ and --, not for ~~
Stefan Behnel [Fri, 24 Aug 2012 05:41:54 +0000 (07:41 +0200)]
show 'no inc/dec in Python' warning only for ++ and --, not for ~~

12 years agofix attribute access on optimised builtin functions
Stefan Behnel [Fri, 24 Aug 2012 05:25:25 +0000 (07:25 +0200)]
fix attribute access on optimised builtin functions

12 years agofix in-test when RHS needs coercion from non-Python type
Stefan Behnel [Fri, 24 Aug 2012 05:11:19 +0000 (07:11 +0200)]
fix in-test when RHS needs coercion from non-Python type

12 years agoMerge pull request #143 from tshirtman/patch-1
Robert Bradshaw [Thu, 23 Aug 2012 22:47:24 +0000 (15:47 -0700)]
Merge pull request #143 from tshirtman/patch-1

Update docs/src/tutorial/caveats.rst

12 years agoUpdate docs/src/tutorial/caveats.rst
Gabriel Pettier [Thu, 23 Aug 2012 22:39:37 +0000 (01:39 +0300)]
Update docs/src/tutorial/caveats.rst

small grammar error/typo in doc

12 years agoprepare release of 0.17b3 0.17b3
Stefan Behnel [Thu, 23 Aug 2012 17:38:21 +0000 (19:38 +0200)]
prepare release of 0.17b3

12 years agofix copy&paste bug in pypy code
Stefan Behnel [Thu, 23 Aug 2012 17:32:00 +0000 (19:32 +0200)]
fix copy&paste bug in pypy code

12 years agoenable 'binding' directive by default when compiling .py files
Stefan Behnel [Thu, 23 Aug 2012 15:13:58 +0000 (17:13 +0200)]
enable 'binding' directive by default when compiling .py files

12 years agocleanups and portability fixes in optimised string methods
Stefan Behnel [Thu, 23 Aug 2012 13:16:18 +0000 (15:16 +0200)]
cleanups and portability fixes in optimised string methods

12 years agofix Numpy test by replacing 'char' buffer type by explicit 'signed char'
Stefan Behnel [Thu, 23 Aug 2012 11:20:29 +0000 (13:20 +0200)]
fix Numpy test by replacing 'char' buffer type by explicit 'signed char'

12 years agodisable ctypes pyregr test - crashes with stdlib compilation
Stefan Behnel [Thu, 23 Aug 2012 11:06:24 +0000 (13:06 +0200)]
disable ctypes pyregr test - crashes with stdlib compilation

12 years agoAlways try global scope on class scope lookup failure
Vitja Makarov [Thu, 23 Aug 2012 05:36:22 +0000 (09:36 +0400)]
Always try global scope on class scope lookup failure

12 years agoRevert "fix lookup order in Python class scope"
Vitja Makarov [Thu, 23 Aug 2012 05:17:29 +0000 (09:17 +0400)]
Revert "fix lookup order in Python class scope"

This reverts commit 22b2f077e3ca9268dba646d9f231813ea9babf96.

12 years agoSet DefNode's decorators to None after assignment synthesis
Vitja Makarov [Tue, 21 Aug 2012 19:52:42 +0000 (23:52 +0400)]
Set DefNode's decorators to None after assignment synthesis

12 years agoMake decorators an attribute of PyClassDefNode
Vitja Makarov [Tue, 21 Aug 2012 19:37:41 +0000 (23:37 +0400)]
Make decorators an attribute of PyClassDefNode

12 years agofix C compiler warning about unused function parameter in tp_clear()
Stefan Behnel [Tue, 21 Aug 2012 20:02:03 +0000 (22:02 +0200)]
fix C compiler warning about unused function parameter in tp_clear()

12 years agodelete blank lines from memoryview utility code
Stefan Behnel [Tue, 21 Aug 2012 19:41:32 +0000 (21:41 +0200)]
delete blank lines from memoryview utility code

12 years agowork around C compiler warning about unused label in optimised list/tuple looping...
Stefan Behnel [Tue, 21 Aug 2012 19:06:25 +0000 (21:06 +0200)]
work around C compiler warning about unused label in optimised list/tuple looping code

12 years agofix compiler crash
Stefan Behnel [Tue, 21 Aug 2012 17:01:36 +0000 (19:01 +0200)]
fix compiler crash

12 years agofix lookup order in Python class scope
Stefan Behnel [Tue, 21 Aug 2012 14:19:52 +0000 (16:19 +0200)]
fix lookup order in Python class scope

--HG--
extra : rebase_source : b3b465b8679fb04ed27193c61bb52c8fb1e6a082

12 years agofix typo
Stefan Behnel [Tue, 21 Aug 2012 13:38:17 +0000 (15:38 +0200)]
fix typo

--HG--
extra : rebase_source : 31e506acbc041cb597ff14455a7d06b34aca0a70

12 years agoremoved duplicated test
Stefan Behnel [Tue, 21 Aug 2012 13:37:08 +0000 (15:37 +0200)]
removed duplicated test

--HG--
extra : rebase_source : 4f0c6c45b777f4f9eeece5f9ca1595753b9a9377

12 years agoFix one numpy test by specifying sign of char.
Robert Bradshaw [Tue, 21 Aug 2012 10:49:22 +0000 (03:49 -0700)]
Fix one numpy test by specifying sign of char.

12 years agoPy2.4 test fixes.
Robert Bradshaw [Tue, 21 Aug 2012 09:48:08 +0000 (02:48 -0700)]
Py2.4 test fixes.

12 years agoGuard C++ declarations with a directive.
Robert Bradshaw [Tue, 21 Aug 2012 07:51:23 +0000 (00:51 -0700)]
Guard C++ declarations with a directive.

12 years agoMore C++ class fixes, tests.
Robert Bradshaw [Tue, 21 Aug 2012 07:46:00 +0000 (00:46 -0700)]
More C++ class fixes, tests.

12 years agoAllow declaring C++ classes in Cython files.
Robert Bradshaw [Tue, 21 Aug 2012 05:37:51 +0000 (22:37 -0700)]
Allow declaring C++ classes in Cython files.

This is necessary to use some C++ APIs, and ugly if not impossible
to work around using cname specifiers and external files.

12 years agoAllow deterministic "generated by" string for easy comparison.
Robert Bradshaw [Tue, 21 Aug 2012 08:30:05 +0000 (01:30 -0700)]
Allow deterministic "generated by" string for easy comparison.

12 years agolooks like the declaration analysis phase is too early for building type conversion...
Stefan Behnel [Mon, 20 Aug 2012 19:47:01 +0000 (21:47 +0200)]
looks like the declaration analysis phase is too early for building type conversion utility code - do it during type analysis

12 years agofix cpp_vector_in_generator test by calling create_from_py_utility_code() early enoug...
Stefan Behnel [Mon, 20 Aug 2012 19:29:00 +0000 (21:29 +0200)]
fix cpp_vector_in_generator test by calling create_from_py_utility_code() early enough to let it inject Cython utility code

12 years agofix rich eq/ne comparisons with string literals if they return non-boolean values
Stefan Behnel [Mon, 20 Aug 2012 17:36:38 +0000 (19:36 +0200)]
fix rich eq/ne comparisons with string literals if they return non-boolean values

12 years agocleaned up exported C-API of array.array object
Stefan Behnel [Mon, 20 Aug 2012 17:03:06 +0000 (19:03 +0200)]
cleaned up exported C-API of array.array object

12 years agoadd 'array' tag to test to enable special casing in test runner
Stefan Behnel [Mon, 20 Aug 2012 13:49:28 +0000 (15:49 +0200)]
add 'array' tag to test to enable special casing in test runner

12 years agoexclude comments from generated C file
Stefan Behnel [Mon, 20 Aug 2012 11:55:04 +0000 (13:55 +0200)]
exclude comments from generated C file

12 years agofix compiler crash on in-place buffer C division
Stefan Behnel [Mon, 20 Aug 2012 07:33:32 +0000 (09:33 +0200)]
fix compiler crash on in-place buffer C division

12 years agosupport 'from cpython.array cimport array' in addition to existing cimport forms
Stefan Behnel [Mon, 20 Aug 2012 07:29:05 +0000 (09:29 +0200)]
support 'from cpython.array cimport array' in addition to existing cimport forms

12 years agoFix declaration in cpp_templates test.
Robert Bradshaw [Fri, 17 Aug 2012 08:13:37 +0000 (01:13 -0700)]
Fix declaration in cpp_templates test.

12 years agoFix (obsolete) forward declared C++ subclass declarations.
Robert Bradshaw [Fri, 17 Aug 2012 07:57:40 +0000 (00:57 -0700)]
Fix (obsolete) forward declared C++ subclass declarations.

12 years agopyximport: make sure we encode extension file paths to 'str' in Py2 to work around...
Stefan Behnel [Thu, 16 Aug 2012 07:00:03 +0000 (09:00 +0200)]
pyximport: make sure we encode extension file paths to 'str' in Py2 to work around distutils quirk

12 years agofix for passing language_level externally as compiler directive
Stefan Behnel [Wed, 15 Aug 2012 22:42:14 +0000 (00:42 +0200)]
fix for passing language_level externally as compiler directive