Stefan Behnel [Fri, 24 Aug 2012 15:45:14 +0000 (17:45 +0200)]
implement bare 'raise' statement outside of except blocks
Stefan Behnel [Fri, 24 Aug 2012 14:35:00 +0000 (16:35 +0200)]
fix declaration of Python classes with names that shadow builtins
Stefan Behnel [Fri, 24 Aug 2012 13:54:35 +0000 (15:54 +0200)]
disable pyregr test test_ioctl: crashes in pyregr+stdlib test runs
Stefan Behnel [Fri, 24 Aug 2012 12:54:21 +0000 (14:54 +0200)]
set initial __file__ value in pyregr test modules
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)
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 ~~
Stefan Behnel [Fri, 24 Aug 2012 05:25:25 +0000 (07:25 +0200)]
fix attribute access on optimised builtin functions
Stefan Behnel [Fri, 24 Aug 2012 05:11:19 +0000 (07:11 +0200)]
fix in-test when RHS needs coercion from non-Python type
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
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
Stefan Behnel [Thu, 23 Aug 2012 17:38:21 +0000 (19:38 +0200)]
prepare release of 0.17b3
Stefan Behnel [Thu, 23 Aug 2012 17:32:00 +0000 (19:32 +0200)]
fix copy&paste bug in pypy code
Stefan Behnel [Thu, 23 Aug 2012 15:13:58 +0000 (17:13 +0200)]
enable 'binding' directive by default when compiling .py files
Stefan Behnel [Thu, 23 Aug 2012 13:16:18 +0000 (15:16 +0200)]
cleanups and portability fixes in optimised string methods
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'
Stefan Behnel [Thu, 23 Aug 2012 11:06:24 +0000 (13:06 +0200)]
disable ctypes pyregr test - crashes with stdlib compilation
Vitja Makarov [Thu, 23 Aug 2012 05:36:22 +0000 (09:36 +0400)]
Always try global scope on class scope lookup failure
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.
Vitja Makarov [Tue, 21 Aug 2012 19:52:42 +0000 (23:52 +0400)]
Set DefNode's decorators to None after assignment synthesis
Vitja Makarov [Tue, 21 Aug 2012 19:37:41 +0000 (23:37 +0400)]
Make decorators an attribute of PyClassDefNode
Stefan Behnel [Tue, 21 Aug 2012 20:02:03 +0000 (22:02 +0200)]
fix C compiler warning about unused function parameter in tp_clear()
Stefan Behnel [Tue, 21 Aug 2012 19:41:32 +0000 (21:41 +0200)]
delete blank lines from memoryview utility code
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
Stefan Behnel [Tue, 21 Aug 2012 17:01:36 +0000 (19:01 +0200)]
fix compiler crash
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
Stefan Behnel [Tue, 21 Aug 2012 13:38:17 +0000 (15:38 +0200)]
fix typo
--HG--
extra : rebase_source :
31e506acbc041cb597ff14455a7d06b34aca0a70
Stefan Behnel [Tue, 21 Aug 2012 13:37:08 +0000 (15:37 +0200)]
removed duplicated test
--HG--
extra : rebase_source :
4f0c6c45b777f4f9eeece5f9ca1595753b9a9377
Robert Bradshaw [Tue, 21 Aug 2012 10:49:22 +0000 (03:49 -0700)]
Fix one numpy test by specifying sign of char.
Robert Bradshaw [Tue, 21 Aug 2012 09:48:08 +0000 (02:48 -0700)]
Py2.4 test fixes.
Robert Bradshaw [Tue, 21 Aug 2012 07:51:23 +0000 (00:51 -0700)]
Guard C++ declarations with a directive.
Robert Bradshaw [Tue, 21 Aug 2012 07:46:00 +0000 (00:46 -0700)]
More C++ class fixes, tests.
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.
Robert Bradshaw [Tue, 21 Aug 2012 08:30:05 +0000 (01:30 -0700)]
Allow deterministic "generated by" string for easy comparison.
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
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
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
Stefan Behnel [Mon, 20 Aug 2012 17:03:06 +0000 (19:03 +0200)]
cleaned up exported C-API of array.array object
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
Stefan Behnel [Mon, 20 Aug 2012 11:55:04 +0000 (13:55 +0200)]
exclude comments from generated C file
Stefan Behnel [Mon, 20 Aug 2012 07:33:32 +0000 (09:33 +0200)]
fix compiler crash on in-place buffer C division
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
Robert Bradshaw [Fri, 17 Aug 2012 08:13:37 +0000 (01:13 -0700)]
Fix declaration in cpp_templates test.
Robert Bradshaw [Fri, 17 Aug 2012 07:57:40 +0000 (00:57 -0700)]
Fix (obsolete) forward declared C++ subclass declarations.
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
Stefan Behnel [Wed, 15 Aug 2012 22:42:14 +0000 (00:42 +0200)]
fix for passing language_level externally as compiler directive
Stefan Behnel [Wed, 15 Aug 2012 21:43:00 +0000 (23:43 +0200)]
allow reassignments to C++ variables while iterating over the original value in a for-loop
Stefan Behnel [Wed, 15 Aug 2012 12:58:07 +0000 (14:58 +0200)]
simplify comparison
Stefan Behnel [Wed, 15 Aug 2012 12:57:44 +0000 (14:57 +0200)]
fix potential leak of modifiable default argument
Stefan Behnel [Wed, 15 Aug 2012 12:36:17 +0000 (14:36 +0200)]
minor code cleanup
Stefan Behnel [Wed, 15 Aug 2012 12:24:49 +0000 (14:24 +0200)]
undo usage of __Pyx_NAMESTR() - not needed for dicts
Stefan Behnel [Wed, 15 Aug 2012 11:50:09 +0000 (13:50 +0200)]
use __Pyx_NAMESTR() macro when referring to module name
Stefan Behnel [Wed, 15 Aug 2012 11:47:55 +0000 (13:47 +0200)]
minor code cleanups in module init code
Stefan Behnel [Wed, 15 Aug 2012 11:36:17 +0000 (13:36 +0200)]
fix error case refcounting bug in module init code
Stefan Behnel [Wed, 15 Aug 2012 10:47:44 +0000 (12:47 +0200)]
fix setting of directive 'set_initial_path' in pyximport after renaming it in the compiler
Stefan Behnel [Wed, 15 Aug 2012 10:47:12 +0000 (12:47 +0200)]
remove duplicated condition
Stefan Behnel [Wed, 15 Aug 2012 10:17:17 +0000 (12:17 +0200)]
removed unused variable
Stefan Behnel [Wed, 15 Aug 2012 10:16:15 +0000 (12:16 +0200)]
use completely separate workspaces for tests to fix cleanup on failures (and to make sharding/parallel test runs straight forward)
Stefan Behnel [Wed, 15 Aug 2012 08:46:07 +0000 (10:46 +0200)]
simplify code by inverting negated comparison
Robert Bradshaw [Wed, 15 Aug 2012 08:37:30 +0000 (01:37 -0700)]
Merge remote-tracking branch 'main/master'
Stefan Behnel [Wed, 15 Aug 2012 08:33:31 +0000 (10:33 +0200)]
fix name setup for package __init__ modules, make sure package is registered when importing its __init__ module; fixes initial_file_path test in Py3.3
Robert Bradshaw [Wed, 15 Aug 2012 08:21:52 +0000 (01:21 -0700)]
One more char test fix.
Stefan Behnel [Wed, 15 Aug 2012 05:51:28 +0000 (07:51 +0200)]
fix undefined variable 'context' in compile_multiple()
Robert Bradshaw [Tue, 14 Aug 2012 19:29:29 +0000 (12:29 -0700)]
Merge branch 'char-buffers'
Robert Bradshaw [Tue, 14 Aug 2012 19:27:46 +0000 (12:27 -0700)]
namespace clarification
Robert Bradshaw [Tue, 14 Aug 2012 19:18:56 +0000 (12:18 -0700)]
Fix template comparison.
Robert Bradshaw [Tue, 14 Aug 2012 18:43:28 +0000 (11:43 -0700)]
Fix C++ template subclassing.
Robert Bradshaw [Sun, 12 Aug 2012 06:53:19 +0000 (23:53 -0700)]
Another cpp-class-as-cdef-class-member fix, fix test with side effect.
Robert Bradshaw [Sun, 12 Aug 2012 05:55:30 +0000 (22:55 -0700)]
Fix template types as class members.
Robert Bradshaw [Sun, 12 Aug 2012 05:07:00 +0000 (22:07 -0700)]
Fix cpp iterator test.
Stefan Behnel [Sat, 11 Aug 2012 20:09:22 +0000 (22:09 +0200)]
added new failing C++ test for using a stack allocate C++ vector inside of a generator
Stefan Behnel [Sat, 11 Aug 2012 20:08:21 +0000 (22:08 +0200)]
added new failing C++ test for iterating over the pointer to a C++ vector
Stefan Behnel [Sat, 11 Aug 2012 19:53:13 +0000 (21:53 +0200)]
added C++ vector test that operates in nogil mode
Stefan Behnel [Sat, 11 Aug 2012 19:51:53 +0000 (21:51 +0200)]
added 'except +' and 'nogil' declarations to shipped STL constructors
Stefan Behnel [Sat, 11 Aug 2012 19:40:46 +0000 (21:40 +0200)]
fix try-finally usage in STL vector test
Stefan Behnel [Sat, 11 Aug 2012 14:44:21 +0000 (16:44 +0200)]
clean up code generation in CmpNode and fix bug #784: conflicting result types for cascaded comparisons
Stefan Behnel [Sat, 11 Aug 2012 07:56:42 +0000 (09:56 +0200)]
properly cast char* argument for PyBytes_FromString() from other char* types
Stefan Behnel [Sat, 11 Aug 2012 06:15:38 +0000 (08:15 +0200)]
comment
Stefan Behnel [Sat, 11 Aug 2012 06:15:30 +0000 (08:15 +0200)]
disable gdb support for --debug convenience option in Py<=2.5
Stefan Behnel [Sat, 11 Aug 2012 06:09:47 +0000 (08:09 +0200)]
minor code simplification
Stefan Behnel [Sat, 11 Aug 2012 06:07:27 +0000 (08:07 +0200)]
support 'from __future__ import absolute_import'
Robert Bradshaw [Fri, 10 Aug 2012 20:03:57 +0000 (13:03 -0700)]
Let signed char == char == unsigned char for buffer comparison.
Stefan Behnel [Fri, 10 Aug 2012 19:36:00 +0000 (21:36 +0200)]
merge
--HG--
rename : docs/src/tutorial/pypy.rst => docs/src/userguide/pypy.rst
Stefan Behnel [Fri, 10 Aug 2012 19:26:13 +0000 (21:26 +0200)]
rst fix
Stefan Behnel [Fri, 10 Aug 2012 19:21:49 +0000 (21:21 +0200)]
move PyPy porting doc page to userguide (not a tutorial), move early-binding page more to the front
--HG--
rename : docs/src/tutorial/pypy.rst => docs/src/userguide/pypy.rst
Robert Bradshaw [Fri, 10 Aug 2012 18:44:46 +0000 (11:44 -0700)]
Fix tests due to buffer char format change.
Robert Bradshaw [Fri, 10 Aug 2012 18:26:44 +0000 (11:26 -0700)]
Use 'c' rather than 'b' for buffer format of chars.
Stefan Behnel [Thu, 9 Aug 2012 19:32:33 +0000 (21:32 +0200)]
disable non-portable assertion in test
Stefan Behnel [Thu, 9 Aug 2012 19:30:49 +0000 (21:30 +0200)]
Py3 test fix (only failure reporting)
Stefan Behnel [Thu, 9 Aug 2012 19:20:55 +0000 (21:20 +0200)]
fix struct field 'is_running' for generator type: T_BOOL property expects char value
Stefan Behnel [Thu, 9 Aug 2012 19:15:41 +0000 (21:15 +0200)]
minor name fix in test
Stefan Behnel [Thu, 9 Aug 2012 18:29:12 +0000 (20:29 +0200)]
minor code cleanup in PrimaryCmpNode
Stefan Behnel [Thu, 9 Aug 2012 16:47:58 +0000 (18:47 +0200)]
disable the 'atexit' pyregr test: it calls the registered atexit handlers which triggers the module cleanup and crashes
Stefan Behnel [Thu, 9 Aug 2012 10:05:22 +0000 (12:05 +0200)]
properly propagate string comparison optimisation into cascaded comparisons
Stefan Behnel [Thu, 9 Aug 2012 08:43:46 +0000 (10:43 +0200)]
fix error message
Dimitri Tcaciuc [Thu, 9 Aug 2012 03:31:54 +0000 (20:31 -0700)]
Doc: fixing miscellaneous warnings and missing refs
Stefan Behnel [Wed, 8 Aug 2012 13:27:58 +0000 (15:27 +0200)]
enable in-place compilation mode for pyximport when used from test runner (improves package compatibility)
Stefan Behnel [Wed, 8 Aug 2012 07:23:46 +0000 (09:23 +0200)]
disable initial_file_path test in Py3.3 due to incompatibilities with new importlib
Stefan Behnel [Tue, 7 Aug 2012 16:59:05 +0000 (18:59 +0200)]
Py2.4 test fix
Stefan Behnel [Tue, 7 Aug 2012 16:52:26 +0000 (18:52 +0200)]
prepare release of 0.17b2
Stefan Behnel [Tue, 7 Aug 2012 15:22:11 +0000 (17:22 +0200)]
added test cases for pyximport