Stefan Behnel [Sun, 9 Dec 2012 13:58:08 +0000 (14:58 +0100)]
changelog fix
Stefan Behnel [Sun, 9 Dec 2012 12:22:19 +0000 (13:22 +0100)]
raise overflow error in Py3.3+ when non-BMP Unicode characters are coerced into a short Py_UNICODE value
Stefan Behnel [Sun, 9 Dec 2012 11:04:59 +0000 (12:04 +0100)]
move some helper code into external utility code files
Stefan Behnel [Sun, 9 Dec 2012 10:35:02 +0000 (11:35 +0100)]
moved Py_UCS4/Py_UNICODE type conversion helper functions to utility code file
Stefan Behnel [Sun, 9 Dec 2012 10:09:02 +0000 (11:09 +0100)]
clean up some code
Stefan Behnel [Sun, 9 Dec 2012 07:46:33 +0000 (08:46 +0100)]
clean up some code
Robert Bradshaw [Fri, 7 Dec 2012 19:04:49 +0000 (11:04 -0800)]
Remove obsolete, unused C++ test.
Stefan Behnel [Fri, 7 Dec 2012 07:05:22 +0000 (08:05 +0100)]
merge
Robert Bradshaw [Thu, 6 Dec 2012 06:49:47 +0000 (22:49 -0800)]
Merge pull request #166 from yarikoptic/master
scripts with shebangs <-> executable + uniform use of #!/usr/bin/env python
Yaroslav Halchenko [Thu, 6 Dec 2012 03:20:30 +0000 (22:20 -0500)]
scripts with shebangs <-> executable + uniform use of #!/usr/bin/env python
Stefan Behnel [Wed, 5 Dec 2012 21:12:33 +0000 (22:12 +0100)]
merge
Mark Florisson [Wed, 5 Dec 2012 17:10:50 +0000 (09:10 -0800)]
Merge pull request #165 from yarikoptic/master
fix analysis of entry to be a weakref (typo introduced in d96dfd)
Yaroslav Halchenko [Wed, 5 Dec 2012 16:51:18 +0000 (11:51 -0500)]
fix analysis of entry to be a weakref (typo introduced in d96dfd)
Originally reported in Debian http://bugs.debian.org/cgi-bin/bugreport.cgi\?bug\=692313
Lead to crash with python-dbg:
python-dbg: ../Modules/gcmodule.c:366: visit_decref: Assertion 'gc->gc.gc_refs != 0' failed
Mark Florisson [Tue, 4 Dec 2012 22:10:46 +0000 (22:10 +0000)]
Omit setting docstring for __getbuffer__/__releasebuffer__
Stefan Behnel [Sun, 2 Dec 2012 19:15:50 +0000 (20:15 +0100)]
disable failing test
Stefan Behnel [Sun, 2 Dec 2012 19:05:34 +0000 (20:05 +0100)]
add simple test case that tends to be more inefficient than necessary
Stefan Behnel [Sun, 2 Dec 2012 10:09:14 +0000 (11:09 +0100)]
minor test cleanup
Stefan Behnel [Fri, 30 Nov 2012 12:05:03 +0000 (13:05 +0100)]
add test case for a C compiler warning due to a bad extension type cast on final method calls
Stefan Behnel [Thu, 29 Nov 2012 21:41:02 +0000 (22:41 +0100)]
add test case
Stefan Behnel [Thu, 29 Nov 2012 21:37:31 +0000 (22:37 +0100)]
work around compiler crash on float().conjugate() for a trivial case by optimising it away
Robert Bradshaw [Thu, 29 Nov 2012 18:26:29 +0000 (10:26 -0800)]
Merge pull request #163 from joonro/patch-5
Minor cleanup of a couple of examples
Joon Ro [Thu, 29 Nov 2012 17:14:49 +0000 (11:14 -0600)]
Minor cleanup of a couple of examples
- fixed wrong references (The file on the left (right) -> actual file name)
- divided an example snippet of three files into separate files
Stefan Behnel [Wed, 28 Nov 2012 20:27:18 +0000 (21:27 +0100)]
merge 0.17 branch into master
Stefan Behnel [Wed, 28 Nov 2012 20:15:28 +0000 (21:15 +0100)]
fix 'cimport cython' in string code fragments
Robert Bradshaw [Wed, 28 Nov 2012 18:12:51 +0000 (10:12 -0800)]
Merge pull request #162 from joonro/patch-4
Fixed indentation of a code example
Joon Ro [Wed, 28 Nov 2012 17:16:50 +0000 (11:16 -0600)]
Fixed indentation of a code example
Fixed a code example which had been indented with 2 spaces.
Robert Bradshaw [Wed, 28 Nov 2012 05:30:03 +0000 (21:30 -0800)]
Merge pull request #161 from joonro/patch-3
changed file order in Sharing C Functions example
Joon Ro [Wed, 28 Nov 2012 04:37:57 +0000 (22:37 -0600)]
changed file order in Sharing C Functions example
This order looks more logical, easier to read.
Robert Bradshaw [Tue, 27 Nov 2012 08:13:29 +0000 (00:13 -0800)]
Merge branch 'bugs'
Robert Bradshaw [Tue, 27 Nov 2012 08:12:41 +0000 (00:12 -0800)]
Better exception reporting for non-child visits.
Robert Bradshaw [Tue, 27 Nov 2012 07:54:50 +0000 (23:54 -0800)]
Fix compiler crash.
Stefan Behnel [Tue, 27 Nov 2012 06:49:42 +0000 (07:49 +0100)]
merged 0.17 branch into master
Stefan Behnel [Tue, 27 Nov 2012 06:41:56 +0000 (07:41 +0100)]
changelog
Stefan Behnel [Tue, 27 Nov 2012 06:37:32 +0000 (07:37 +0100)]
keep longness when folding negative integer constants
Stefan Behnel [Tue, 27 Nov 2012 06:37:32 +0000 (07:37 +0100)]
keep longness when folding negative integer constants
--HG--
extra : transplant_source : %CC%EC%23%19%11%1A%22%FB%5C-%18%AD%0D%FC%24L%BD%81%91%FF
Stefan Behnel [Tue, 27 Nov 2012 06:07:07 +0000 (07:07 +0100)]
fix PrintTree() debug helper for compiled Cython
Mark Florisson [Sat, 24 Nov 2012 19:16:29 +0000 (11:16 -0800)]
Merge pull request #153 from joonro/patch-2
Update cy break examples
Robert Bradshaw [Thu, 22 Nov 2012 01:29:52 +0000 (17:29 -0800)]
Merge pull request #158 from juliantaylor/plat-specific
add platform specific include directory to compile line
Stefan Behnel [Wed, 21 Nov 2012 05:11:09 +0000 (06:11 +0100)]
fix accidental line duplication in changelog
Stefan Behnel [Tue, 20 Nov 2012 21:22:11 +0000 (22:22 +0100)]
added 0.18 section to changelog
Stefan Behnel [Tue, 20 Nov 2012 21:21:13 +0000 (22:21 +0100)]
merged 0.17 branch into master
Stefan Behnel [Tue, 20 Nov 2012 20:37:03 +0000 (21:37 +0100)]
Added tag 0.17.2 for changeset
275fb550c1d8
Stefan Behnel [Tue, 20 Nov 2012 20:16:58 +0000 (21:16 +0100)]
prepare release of 0.17.2
Julian Taylor [Sun, 18 Nov 2012 12:44:55 +0000 (13:44 +0100)]
add platform specific include directory to compile line
beginning with python3.3 it is different than the general include
directory on debian based systems
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
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
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
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
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
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
Stefan Behnel [Sat, 17 Nov 2012 13:33:33 +0000 (14:33 +0100)]
restrict enforced temp coercion in normal assignments to Python objects
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
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
Stefan Behnel [Sat, 17 Nov 2012 11:35:20 +0000 (12:35 +0100)]
minor comment fix
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
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
Stefan Behnel [Wed, 14 Nov 2012 19:41:47 +0000 (20:41 +0100)]
increased version to 0.17.2rc1
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
Mark Florisson [Sun, 11 Nov 2012 14:17:00 +0000 (14:17 +0000)]
Use __Pyx_PyIndex_Check instead of PyIndex_Check
Stefan Behnel [Sun, 11 Nov 2012 08:54:10 +0000 (09:54 +0100)]
merge
Stefan Behnel [Sun, 11 Nov 2012 08:50:18 +0000 (09:50 +0100)]
changelog
Stefan Behnel [Sun, 11 Nov 2012 08:44:50 +0000 (09:44 +0100)]
improved 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
Mark Florisson [Sat, 10 Nov 2012 21:31:41 +0000 (21:31 +0000)]
Redefine PyIndex_Check in memoryview utility
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
--HG--
extra : transplant_source : %5B%CA%EDn_W3%84%FB%11.f%5C%FC%0E%F9%26%A9%29R
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
--HG--
extra : transplant_source : %06m%CA%82%F2%FDq%E4%88%DDJ%C8%FDe%00KG%D55%CB
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
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
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