Dan Miller [Sat, 17 Nov 2012 04:54:55 +0000 (20:54 -0800)]
Implementing module name parsing with os.path.
Stefan Behnel [Sun, 11 Nov 2012 08:44:50 +0000 (09:44 +0100)]
improved test for cascaded comparison coercions
Stefan Behnel [Sat, 10 Nov 2012 16:58:03 +0000 (17:58 +0100)]
merge
Stefan Behnel [Sat, 10 Nov 2012 14:09:45 +0000 (15:09 +0100)]
added test case for d[x,]
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
Stefan Behnel [Fri, 9 Nov 2012 21:56:39 +0000 (22:56 +0100)]
extended test case for cascaded comparisons
Stefan Behnel [Fri, 9 Nov 2012 21:52:09 +0000 (22:52 +0100)]
fix type coercion in cascaded comparisons
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
Robert Bradshaw [Fri, 9 Nov 2012 18:45:47 +0000 (10:45 -0800)]
C++ specialization fix
Robert Bradshaw [Fri, 9 Nov 2012 21:16:31 +0000 (13:16 -0800)]
Merge remote-tracking branch 'main/0.17' into bugs
Stefan Behnel [Fri, 9 Nov 2012 20:26:24 +0000 (21:26 +0100)]
fix compiler crash for generator expressions with a constant False condition
Robert Bradshaw [Fri, 9 Nov 2012 19:12:13 +0000 (11:12 -0800)]
Fix compiler crash for invalid C++ base classes.
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
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
Stefan Behnel [Fri, 9 Nov 2012 18:59:21 +0000 (19:59 +0100)]
fix compiler crash on nested generator expressions
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.
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.
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...
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.
Robert Bradshaw [Thu, 8 Nov 2012 02:24:35 +0000 (18:24 -0800)]
More overflow test fixes.
Robert Bradshaw [Thu, 8 Nov 2012 02:08:42 +0000 (18:08 -0800)]
More nullary C++ class constructor checks.
Robert Bradshaw [Thu, 8 Nov 2012 00:44:20 +0000 (16:44 -0800)]
Remove module docstring if docstrings are disabled #792.
Robert Bradshaw [Wed, 7 Nov 2012 23:58:56 +0000 (15:58 -0800)]
Fix 32-bit overflow tests, also got rid of some warnings.
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
Stefan Behnel [Tue, 6 Nov 2012 20:14:43 +0000 (21:14 +0100)]
safety fix
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
Stefan Behnel [Tue, 6 Nov 2012 19:26:42 +0000 (20:26 +0100)]
PyPy compile fix for PyLong conversion
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
Stefan Behnel [Tue, 6 Nov 2012 09:12:04 +0000 (10:12 +0100)]
work around for exception output change in Py3.4
Stefan Behnel [Tue, 6 Nov 2012 08:22:42 +0000 (09:22 +0100)]
disable auto_cpdef for stdlib compilation - too many failures
Stefan Behnel [Tue, 6 Nov 2012 08:18:44 +0000 (09:18 +0100)]
changelog comment
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
Stefan Behnel [Mon, 5 Nov 2012 21:14:50 +0000 (22:14 +0100)]
fix initial module registration for (nested) packages
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
Stefan Behnel [Sun, 4 Nov 2012 20:36:48 +0000 (21:36 +0100)]
more special casing of stdlib modules
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
Stefan Behnel [Sun, 4 Nov 2012 19:26:39 +0000 (20:26 +0100)]
prevent auto_cpdef from breaking module-level lambdas
Stefan Behnel [Sun, 4 Nov 2012 19:25:08 +0000 (20:25 +0100)]
more special casing of stdlib modules
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'
Stefan Behnel [Sun, 4 Nov 2012 18:31:44 +0000 (19:31 +0100)]
more special casing of stdlib modules
Mark Florisson [Sun, 4 Nov 2012 13:40:33 +0000 (13:40 +0000)]
Use cython.long instead of long in python mode
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[:, :]
Mark Florisson [Wed, 8 Aug 2012 16:50:14 +0000 (17:50 +0100)]
Fix fused signature delimiter and ndim dispatch
Stefan Behnel [Sun, 4 Nov 2012 13:22:04 +0000 (14:22 +0100)]
extended stdlib compilation script that special cases some tricky modules
Stefan Behnel [Sun, 4 Nov 2012 09:58:56 +0000 (10:58 +0100)]
added script to compile the CPython stdlib
Stefan Behnel [Sun, 4 Nov 2012 09:21:11 +0000 (10:21 +0100)]
merged 0.17 branch into master
Stefan Behnel [Sun, 4 Nov 2012 09:20:22 +0000 (10:20 +0100)]
added changelog file
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
Stefan Behnel [Sat, 3 Nov 2012 23:13:14 +0000 (00:13 +0100)]
removed useless copy&paste code from test
Stefan Behnel [Sat, 3 Nov 2012 23:10:01 +0000 (00:10 +0100)]
merged 0.17 branch into master
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
Stefan Behnel [Sat, 3 Nov 2012 22:39:15 +0000 (23:39 +0100)]
merged 0.17 branch into master
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
Stefan Behnel [Sat, 3 Nov 2012 22:36:25 +0000 (23:36 +0100)]
added test for self-reimport at module init time
Robert Bradshaw [Sat, 3 Nov 2012 22:26:51 +0000 (15:26 -0700)]
Merge branch 'bugs'
Robert Bradshaw [Sat, 3 Nov 2012 22:22:16 +0000 (15:22 -0700)]
Fix destructor name computation in the face of namespace template args.
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
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)
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
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__()
Stefan Behnel [Sat, 3 Nov 2012 20:40:01 +0000 (21:40 +0100)]
moved helper function __Pyx_Import() into ImportExport.c utility code file
Robert Bradshaw [Thu, 1 Nov 2012 08:03:21 +0000 (01:03 -0700)]
Merge remote-tracking branch 'remotes/origin/0.17'
Robert Bradshaw [Thu, 1 Nov 2012 06:50:33 +0000 (23:50 -0700)]
Move nested classes helper file.
Robert Bradshaw [Thu, 1 Nov 2012 05:59:05 +0000 (22:59 -0700)]
Test of last two fixes.
Robert Bradshaw [Thu, 1 Nov 2012 05:58:43 +0000 (22:58 -0700)]
Fix type names as arg names for int types.
Robert Bradshaw [Thu, 1 Nov 2012 05:47:03 +0000 (22:47 -0700)]
Fix using non-encoded strings as identifiers.
Robert Bradshaw [Wed, 31 Oct 2012 18:56:16 +0000 (11:56 -0700)]
Swap args for lhs const overflow check.
Robert Bradshaw [Wed, 31 Oct 2012 17:42:15 +0000 (10:42 -0700)]
Merge branch 'overflow'
Robert Bradshaw [Tue, 30 Oct 2012 20:57:20 +0000 (13:57 -0700)]
More warning suppression, formatting.
Stefan Behnel [Tue, 30 Oct 2012 16:26:55 +0000 (17:26 +0100)]
merge
Stefan Behnel [Tue, 30 Oct 2012 16:12:22 +0000 (17:12 +0100)]
fix pure Python test
--HG--
extra : rebase_source :
8127709bcb8f2d8f6cfd91a1e46b16dcb7734765
Stefan Behnel [Tue, 30 Oct 2012 16:12:22 +0000 (17:12 +0100)]
fix pure Python test
Robert Bradshaw [Tue, 30 Oct 2012 08:11:55 +0000 (01:11 -0700)]
Merge branch 'bugs' into main_master
Robert Bradshaw [Tue, 30 Oct 2012 08:07:48 +0000 (01:07 -0700)]
Nested class tests.
Robert Bradshaw [Tue, 30 Oct 2012 08:07:20 +0000 (01:07 -0700)]
Fix non-template nested class declarations.
Robert Bradshaw [Tue, 30 Oct 2012 07:21:03 +0000 (00:21 -0700)]
Add array cimport test.
Robert Bradshaw [Tue, 30 Oct 2012 07:19:54 +0000 (00:19 -0700)]
Fix cpython.array declaration order.
Stefan Behnel [Mon, 29 Oct 2012 22:47:08 +0000 (23:47 +0100)]
fix exclusion comparison in cythonize()
--HG--
extra : rebase_source :
d7e8fd6a1d192a73dfac8c38a502dda52be14899
Stefan Behnel [Mon, 29 Oct 2012 22:47:08 +0000 (23:47 +0100)]
fix exclusion comparison in cythonize()
Stefan Behnel [Mon, 29 Oct 2012 22:46:21 +0000 (23:46 +0100)]
fix parser crash
--HG--
extra : rebase_source :
ac66b38753ea5b4ea9d47ff475ebbf33b19b7c49
Stefan Behnel [Mon, 29 Oct 2012 22:46:21 +0000 (23:46 +0100)]
fix parser crash
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
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
Stefan Behnel [Mon, 29 Oct 2012 17:08:09 +0000 (18:08 +0100)]
suppress compiler crashes in cythonize() trial&error mode
Stefan Behnel [Mon, 29 Oct 2012 15:34:17 +0000 (16:34 +0100)]
disable some Cython syntax in .py compilation mode: typecasts, &..., sizeof()
Stefan Behnel [Mon, 29 Oct 2012 15:29:22 +0000 (16:29 +0100)]
fix compiler crash in optimiser dispatch code
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
Robert Bradshaw [Thu, 25 Oct 2012 07:17:22 +0000 (00:17 -0700)]
Overflow check docs.
Robert Bradshaw [Thu, 25 Oct 2012 07:11:07 +0000 (00:11 -0700)]
Left shift overflow guards.
Robert Bradshaw [Thu, 25 Oct 2012 06:40:57 +0000 (23:40 -0700)]
(Cheaper) overflow check for const rhs.
Robert Bradshaw [Thu, 25 Oct 2012 06:40:37 +0000 (23:40 -0700)]
Allow constant typecasts.
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
Robert Bradshaw [Sat, 29 Sep 2012 05:56:22 +0000 (22:56 -0700)]
Overflow check tests.
Robert Bradshaw [Thu, 2 Aug 2012 03:21:53 +0000 (20:21 -0700)]
control overflow with a directive
Robert Bradshaw [Tue, 31 Jul 2012 07:14:56 +0000 (00:14 -0700)]
First pass at int overflow checking.
Robert Bradshaw [Fri, 12 Oct 2012 21:54:07 +0000 (14:54 -0700)]
Fix typo in array test.
--HG--
extra : rebase_source :
2998d32280e8f7becd6a0993adaea565d2e986fd
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
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
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
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