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
--HG--
extra : transplant_source : N0%87%F3%B0%B3W%C5%D6%B93%01T%AB%14%E0%CF%A7%B79
Mark Florisson [Tue, 4 Dec 2012 22:10:46 +0000 (22:10 +0000)]
Omit setting docstring for __getbuffer__/__releasebuffer__
--HG--
extra : transplant_source : %04%AD%9D%8Dy%E4%7F%D04ib%0E%90%DB%D48%C3%88%19g
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
--HG--
extra : transplant_source : D%E7%E2%8D%C4i%B7%08%F4%83%08sQ%84%27%3E%F3%17%AB%24
Yaroslav Halchenko [Thu, 6 Dec 2012 03:20:30 +0000 (22:20 -0500)]
scripts with shebangs <-> executable + uniform use of #!/usr/bin/env python
--HG--
extra : transplant_source : %88%DC%06k%08%83%3C%E2%17%A5%A24%3E%BC%0Au%92%5DEK
Stefan Behnel [Sun, 9 Dec 2012 12:27:00 +0000 (13:27 +0100)]
fix up changelog
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
--HG--
extra : transplant_source : %D3%96%7C%F9%3F%AE%1AA%8C%B9%0E%918%FB%27%F4%CB%E7u-
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
--HG--
extra : transplant_source : %7C%3E%C7x%E7%A8s%CEF%B5%90%C5%DC%AD%CD%5E%1Fg%F9%7E
Stefan Behnel [Fri, 30 Nov 2012 12:30:31 +0000 (13:30 +0100)]
fix refnanny code for del statement inside of generators
Stefan Behnel [Wed, 28 Nov 2012 20:15:28 +0000 (21:15 +0100)]
fix 'cimport cython' in string code fragments
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: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
--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, 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
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
--HG--
extra : transplant_source : %01%22lN%B0%1D%B9h%AC%2B4%E1F%7FQ%15%E6%F3%F1%9F
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 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: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 [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
--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 [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: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
Robert Bradshaw [Fri, 9 Nov 2012 21:16:31 +0000 (13:16 -0800)]
Merge remote-tracking branch 'main/0.17' into bugs
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
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 [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.
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 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 [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 [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
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 09:20:22 +0000 (10:20 +0100)]
added changelog file
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: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: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
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 [Tue, 30 Oct 2012 16:12:22 +0000 (17:12 +0100)]
fix pure Python test
--HG--
extra : rebase_source :
8127709bcb8f2d8f6cfd91a1e46b16dcb7734765
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:46:21 +0000 (23:46 +0100)]
fix parser crash
--HG--
extra : rebase_source :
ac66b38753ea5b4ea9d47ff475ebbf33b19b7c49
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
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
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 [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.
Robert Bradshaw [Fri, 5 Oct 2012 23:01:33 +0000 (16:01 -0700)]
Fix specialization for varargs function signatures.
Stefan Behnel [Wed, 26 Sep 2012 16:47:14 +0000 (18:47 +0200)]
prepare release of 0.17.1
Mark Florisson [Sun, 23 Sep 2012 11:05:48 +0000 (12:05 +0100)]
Error checking for NULL strides + tests
Christoph Groth [Wed, 19 Sep 2012 05:58:44 +0000 (07:58 +0200)]
make memoryviews work when strides is NULL
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
Stefan Behnel [Tue, 25 Sep 2012 14:04:05 +0000 (16:04 +0200)]
fix ticket 790: reference leak during dict iteration
Stefan Behnel [Sat, 1 Sep 2012 06:24:42 +0000 (08:24 +0200)]
prepare release of 0.17 final
Stefan Behnel [Fri, 31 Aug 2012 11:22:02 +0000 (13:22 +0200)]
fix PYTHONPATH handling for end-to-end tests
Stefan Behnel [Fri, 31 Aug 2012 05:59:43 +0000 (07:59 +0200)]
always set CYTHON_FORMAT_SSIZE_T to 'z' on Py2.5+
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
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"
cgohlke [Thu, 30 Aug 2012 23:36:34 +0000 (16:36 -0700)]
Use CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:30:28 +0000 (16:30 -0700)]
Use CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:28:58 +0000 (16:28 -0700)]
Use CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:27:46 +0000 (16:27 -0700)]
Use CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:25:53 +0000 (16:25 -0700)]
Use CYTHON_FORMAT_SSIZE_T
cgohlke [Thu, 30 Aug 2012 23:23:38 +0000 (16:23 -0700)]
Use CYTHON_FORMAT_SSIZE_T
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
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
cgohlke [Thu, 30 Aug 2012 20:33:51 +0000 (13:33 -0700)]
Add '/openmp' flag when compiling Cpp code with msvc compilers
Stefan Behnel [Thu, 30 Aug 2012 18:25:44 +0000 (20:25 +0200)]
clean up and simplify signature matching test
Stefan Behnel [Thu, 30 Aug 2012 12:19:39 +0000 (14:19 +0200)]
added some tests for the function signature override matcher
Stefan Behnel [Thu, 30 Aug 2012 08:38:15 +0000 (10:38 +0200)]
prepare release of 0.17b4
Stefan Behnel [Wed, 29 Aug 2012 21:50:41 +0000 (23:50 +0200)]
also fix up keyword type checking function to allow Unicode strings
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+)
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
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)
Stefan Behnel [Tue, 28 Aug 2012 21:05:28 +0000 (23:05 +0200)]
PyPy fix
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)
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
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
Stefan Behnel [Tue, 28 Aug 2012 11:05:09 +0000 (13:05 +0200)]
disable pyregr.test_exceptions: crashes in infinite recursion test