platform/upstream/python-cython.git
11 years agoadded 0.18 section to changelog
Stefan Behnel [Tue, 20 Nov 2012 21:22:11 +0000 (22:22 +0100)]
added 0.18 section to changelog

11 years agomerged 0.17 branch into master
Stefan Behnel [Tue, 20 Nov 2012 21:21:13 +0000 (22:21 +0100)]
merged 0.17 branch into master

11 years agoAdded tag 0.17.2 for changeset 275fb550c1d8
Stefan Behnel [Tue, 20 Nov 2012 20:37:03 +0000 (21:37 +0100)]
Added tag 0.17.2 for changeset 275fb550c1d8

11 years agoprepare release of 0.17.2 0.17.2
Stefan Behnel [Tue, 20 Nov 2012 20:16:58 +0000 (21:16 +0100)]
prepare release of 0.17.2

11 years agoadd test for temp type adaptation from C array to C pointer type
Stefan Behnel [Sun, 18 Nov 2012 06:16:45 +0000 (07:16 +0100)]
add test for temp type adaptation from C array to C pointer type

11 years agoadd test for temp type adaptation from C array to C pointer type
Stefan Behnel [Sun, 18 Nov 2012 06:16:45 +0000 (07:16 +0100)]
add test for temp type adaptation from C array to C pointer type

--HG--
extra : transplant_source : %08%F6%88rE%C7%F5%CD.%9Ad%244m%0Cw%8C%25g%C0

11 years agouse type.as_argument_type() when adapting temp types, include C function types in...
Stefan Behnel [Sun, 18 Nov 2012 05:58:45 +0000 (06:58 +0100)]
use type.as_argument_type() when adapting temp types, include C function types in special cases

11 years agouse type.as_argument_type() when adapting temp types, include C function types in...
Stefan Behnel [Sun, 18 Nov 2012 05:58:45 +0000 (06:58 +0100)]
use type.as_argument_type() when adapting temp types, include C function types in special cases

--HG--
extra : transplant_source : %01%22lN%B0%1D%B9h%AC%2B4%E1F%7FQ%15%E6%F3%F1%9F

11 years agobacked out temp type adaptation changes to use type.as_argument_type() instead
Stefan Behnel [Sun, 18 Nov 2012 05:57:58 +0000 (06:57 +0100)]
backed out temp type adaptation changes to use type.as_argument_type() instead

11 years agorestrict enforced temp coercion in normal assignments to Python objects
Stefan Behnel [Sat, 17 Nov 2012 13:33:33 +0000 (14:33 +0100)]
restrict enforced temp coercion in normal assignments to Python objects

--HG--
extra : transplant_source : 81Y%F6%E5%B8%BF%F4%D9%97%85%93%16%9B%A5E%B2%FD%AE%5C

11 years agorestrict enforced temp coercion in normal assignments to Python objects
Stefan Behnel [Sat, 17 Nov 2012 13:33:33 +0000 (14:33 +0100)]
restrict enforced temp coercion in normal assignments to Python objects

11 years agowhen creating temps for C arrays and C functions, use to their respective pointer...
Stefan Behnel [Sat, 17 Nov 2012 13:10:45 +0000 (14:10 +0100)]
when creating temps for C arrays and C functions, use to their respective pointer type

11 years agominor comment fix
Stefan Behnel [Sat, 17 Nov 2012 11:35:20 +0000 (12:35 +0100)]
minor comment fix

--HG--
extra : transplant_source : %A1/-i%8Cd%C3%DBCy%19%7C%19%87%B9%C5%60%B9P%F5

11 years agominor comment fix
Stefan Behnel [Sat, 17 Nov 2012 11:35:20 +0000 (12:35 +0100)]
minor comment fix

11 years agomake the RHS of assignments safe if the LHS target is a subset of a RHS attribute...
Stefan Behnel [Sat, 17 Nov 2012 11:24:39 +0000 (12:24 +0100)]
make the RHS of assignments safe if the LHS target is a subset of a RHS attribute access

--HG--
extra : transplant_source : %D5%C52%5C7%CD%85%8F%3D7%9C%27%C6%8AGb%DBX%AEe

11 years agomake the RHS of assignments safe if the LHS target is a subset of a RHS attribute...
Stefan Behnel [Sat, 17 Nov 2012 11:24:39 +0000 (12:24 +0100)]
make the RHS of assignments safe if the LHS target is a subset of a RHS attribute access

11 years agoincreased version to 0.17.2rc1
Stefan Behnel [Wed, 14 Nov 2012 19:41:47 +0000 (20:41 +0100)]
increased version to 0.17.2rc1

12 years agoMerge branch '0.17' of github.com:cython/cython into 0.17
Mark Florisson [Sun, 11 Nov 2012 14:54:58 +0000 (14:54 +0000)]
Merge branch '0.17' of github.com:cython/cython into 0.17

12 years agoUse __Pyx_PyIndex_Check instead of PyIndex_Check
Mark Florisson [Sun, 11 Nov 2012 14:17:00 +0000 (14:17 +0000)]
Use __Pyx_PyIndex_Check instead of PyIndex_Check

12 years agomerge
Stefan Behnel [Sun, 11 Nov 2012 08:54:10 +0000 (09:54 +0100)]
merge

12 years agochangelog
Stefan Behnel [Sun, 11 Nov 2012 08:50:18 +0000 (09:50 +0100)]
changelog

12 years agoimproved test for cascaded comparison coercions
Stefan Behnel [Sun, 11 Nov 2012 08:44:50 +0000 (09:44 +0100)]
improved test for cascaded comparison coercions

12 years agoimproved test for cascaded comparison coercions
Stefan Behnel [Sun, 11 Nov 2012 08:44:50 +0000 (09:44 +0100)]
improved test for cascaded comparison coercions

--HG--
extra : transplant_source : %D3j%DF%23%CF%DB%14p%01y%26%8D%D3%91%03z%9BZ%BF%CD

12 years agoRedefine PyIndex_Check in memoryview utility
Mark Florisson [Sat, 10 Nov 2012 21:31:41 +0000 (21:31 +0000)]
Redefine PyIndex_Check in memoryview utility

12 years agomerge
Stefan Behnel [Sat, 10 Nov 2012 16:58:03 +0000 (17:58 +0100)]
merge

12 years agoadded test case for d[x,]
Stefan Behnel [Sat, 10 Nov 2012 14:09:45 +0000 (15:09 +0100)]
added test case for d[x,]

12 years agomake the parser correctly understand obj[1,] as passing a tuple as key
Stefan Behnel [Sat, 10 Nov 2012 14:04:47 +0000 (15:04 +0100)]
make the parser correctly understand obj[1,] as passing a tuple as key

12 years agoextended test case for cascaded comparisons
Stefan Behnel [Fri, 9 Nov 2012 21:56:39 +0000 (22:56 +0100)]
extended test case for cascaded comparisons

--HG--
extra : transplant_source : %5B%CA%EDn_W3%84%FB%11.f%5C%FC%0E%F9%26%A9%29R

12 years agoextended test case for cascaded comparisons
Stefan Behnel [Fri, 9 Nov 2012 21:56:39 +0000 (22:56 +0100)]
extended test case for cascaded comparisons

12 years agofix type coercion in cascaded comparisons
Stefan Behnel [Fri, 9 Nov 2012 21:52:09 +0000 (22:52 +0100)]
fix type coercion in cascaded comparisons

--HG--
extra : transplant_source : %06m%CA%82%F2%FDq%E4%88%DDJ%C8%FDe%00KG%D55%CB

12 years agoadded test case for d[x,]
Stefan Behnel [Sat, 10 Nov 2012 14:09:45 +0000 (15:09 +0100)]
added test case for d[x,]

--HG--
extra : transplant_source : %CFQ%F5rF%11j%FE0%F7%C4j%0A%0A%2B%E2%3AF%89%E9

12 years agomake the parser correctly understand obj[1,] as passing a tuple as key
Stefan Behnel [Sat, 10 Nov 2012 14:04:47 +0000 (15:04 +0100)]
make the parser correctly understand obj[1,] as passing a tuple as key

--HG--
extra : transplant_source : %5D%AE%1EG%B0%F9%A2%C2%1A%FB5%A6%A65%A5%EE%C4%AC%C4%AD

12 years agofix type coercion in cascaded comparisons
Stefan Behnel [Fri, 9 Nov 2012 21:52:09 +0000 (22:52 +0100)]
fix type coercion in cascaded comparisons

12 years agoMerge branch 'bugs'
Robert Bradshaw [Fri, 9 Nov 2012 21:22:55 +0000 (13:22 -0800)]
Merge branch 'bugs'

Conflicts:
Cython/Compiler/Optimize.py
Cython/Compiler/TypeInference.py

12 years agoC++ specialization fix
Robert Bradshaw [Fri, 9 Nov 2012 18:45:47 +0000 (10:45 -0800)]
C++ specialization fix

12 years agoMerge remote-tracking branch 'main/0.17' into bugs
Robert Bradshaw [Fri, 9 Nov 2012 21:16:31 +0000 (13:16 -0800)]
Merge remote-tracking branch 'main/0.17' into bugs

12 years agofix compiler crash for generator expressions with a constant False condition
Stefan Behnel [Fri, 9 Nov 2012 20:26:24 +0000 (21:26 +0100)]
fix compiler crash for generator expressions with a constant False condition

12 years agoFix compiler crash for invalid C++ base classes.
Robert Bradshaw [Fri, 9 Nov 2012 19:12:13 +0000 (11:12 -0800)]
Fix compiler crash for invalid C++ base classes.

12 years agofix compiler crash on nested generator expressions
Stefan Behnel [Fri, 9 Nov 2012 18:59:21 +0000 (19:59 +0100)]
fix compiler crash on nested generator expressions

--HG--
extra : transplant_source : l%01%83uy%F4Z%F6%AD%FBj%9E%1B%E8%C1O%0C%25R%1B

12 years agofix compiler crash for generator expressions with a constant False condition
Stefan Behnel [Fri, 9 Nov 2012 20:26:24 +0000 (21:26 +0100)]
fix compiler crash for generator expressions with a constant False condition

--HG--
extra : transplant_source : C%C7%2Ak%C4%89%DA%C1f%85%86%0D%9E%7F_%B4%17%D2t%40

12 years agofix compiler crash on nested generator expressions
Stefan Behnel [Fri, 9 Nov 2012 18:59:21 +0000 (19:59 +0100)]
fix compiler crash on nested generator expressions

12 years agoFix destructor name ...
Olivier Parcollet [Fri, 9 Nov 2012 12:40:05 +0000 (13:40 +0100)]
Fix destructor name ...

There appears to be a pb in 9df8c9daf10ff30a8e6506b72406d032f268a17b.

For a template class, A::B::C<T1,T2>
the destructor name was C<T1,T2>
leading to code like
A::B::C<T1,T2>::~C<T1,T2>()

which does not compile on gcc (4.6, 4.7), also it seems to be correct code ...
clang and intel C++ compile it, but not gcc.

I changed the name to generate the code :

A::B::C<T1,T2>::~C()

which compiles on gcc, clang, intel

by further cutting the <...> in the destructor name.

12 years agoAdd nullary constructors for stl type conversion utility code to avoid better error...
Robert Bradshaw [Fri, 9 Nov 2012 18:48:15 +0000 (10:48 -0800)]
Add nullary constructors for stl type conversion utility code to avoid better error checking.

12 years agoMerge pull request #156 from parcollet/master
Robert Bradshaw [Fri, 9 Nov 2012 18:19:04 +0000 (10:19 -0800)]
Merge pull request #156 from parcollet/master

Destructor name again : compilation issue with gcc...

12 years agoFix destructor name ...
Olivier Parcollet [Fri, 9 Nov 2012 12:40:05 +0000 (13:40 +0100)]
Fix destructor name ...

There appears to be a pb in 9df8c9daf10ff30a8e6506b72406d032f268a17b.

For a template class, A::B::C<T1,T2>
the destructor name was C<T1,T2>
leading to code like
A::B::C<T1,T2>::~C<T1,T2>()

which does not compile on gcc (4.6, 4.7), also it seems to be correct code ...
clang and intel C++ compile it, but not gcc.

I changed the name to generate the code :

A::B::C<T1,T2>::~C()

which compiles on gcc, clang, intel

by further cutting the <...> in the destructor name.

12 years agoMore overflow test fixes.
Robert Bradshaw [Thu, 8 Nov 2012 02:24:35 +0000 (18:24 -0800)]
More overflow test fixes.

12 years agoMore nullary C++ class constructor checks.
Robert Bradshaw [Thu, 8 Nov 2012 02:08:42 +0000 (18:08 -0800)]
More nullary C++ class constructor checks.

12 years agoRemove module docstring if docstrings are disabled #792.
Robert Bradshaw [Thu, 8 Nov 2012 00:44:20 +0000 (16:44 -0800)]
Remove module docstring if docstrings are disabled #792.

12 years agoFix 32-bit overflow tests, also got rid of some warnings.
Robert Bradshaw [Wed, 7 Nov 2012 23:58:56 +0000 (15:58 -0800)]
Fix 32-bit overflow tests, also got rid of some warnings.

12 years agofix result type of integer division in overflow test for unsigned int types
Stefan Behnel [Tue, 6 Nov 2012 21:26:07 +0000 (22:26 +0100)]
fix result type of integer division in overflow test for unsigned int types

12 years agosafety fix
Stefan Behnel [Tue, 6 Nov 2012 20:14:43 +0000 (21:14 +0100)]
safety fix

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

--HG--
extra : transplant_source : %B2%2Cy%7D%FD%EBA%B6t%E7%99%FE%8D%B0f%9BN%98%C7%0C

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

--HG--
extra : transplant_source : %04A%81%18%40%C9Q%F1%1B%B8t%DC%1C%EB%1B%60%03%AC%02%EC

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

--HG--
extra : transplant_source : 1%92%CA%A14x%08H%1D%3A%F3z%E7%E22%BF%CA%D2%1B%10

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

--HG--
extra : transplant_source : %FE%F3%DD2%1F-DN%11%05%F1%F5%1C%B3%B2C%90a%0C%10

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 agoUse cython.long instead of long in python mode
Mark Florisson [Sun, 4 Nov 2012 13:40:33 +0000 (13:40 +0000)]
Use cython.long instead of long in python mode

12 years agoFix fused types delimiter, add pure-mode memoryview syntax like cython.double[:, :]
Mark Florisson [Sun, 4 Nov 2012 12:38:14 +0000 (12:38 +0000)]
Fix fused types delimiter, add pure-mode memoryview syntax like cython.double[:, :]

12 years agoFix fused signature delimiter and ndim dispatch
Mark Florisson [Wed, 8 Aug 2012 16:50:14 +0000 (17:50 +0100)]
Fix fused signature delimiter and ndim dispatch

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.