platform/upstream/python-cython.git
11 years agoshow 'no inc/dec in Python' warning only for ++ and --, not for ~~
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 ~~

11 years agofix attribute access on optimised builtin functions
Stefan Behnel [Fri, 24 Aug 2012 05:25:25 +0000 (07:25 +0200)]
fix attribute access on optimised builtin functions

11 years agofix in-test when RHS needs coercion from non-Python type
Stefan Behnel [Fri, 24 Aug 2012 05:11:19 +0000 (07:11 +0200)]
fix in-test when RHS needs coercion from non-Python type

11 years agoMerge pull request #143 from tshirtman/patch-1
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

11 years agoUpdate 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

11 years agoprepare release of 0.17b3 0.17b3
Stefan Behnel [Thu, 23 Aug 2012 17:38:21 +0000 (19:38 +0200)]
prepare release of 0.17b3

11 years agofix copy&paste bug in pypy code
Stefan Behnel [Thu, 23 Aug 2012 17:32:00 +0000 (19:32 +0200)]
fix copy&paste bug in pypy code

11 years agoenable 'binding' directive by default when compiling .py files
Stefan Behnel [Thu, 23 Aug 2012 15:13:58 +0000 (17:13 +0200)]
enable 'binding' directive by default when compiling .py files

11 years agocleanups and portability fixes in optimised string methods
Stefan Behnel [Thu, 23 Aug 2012 13:16:18 +0000 (15:16 +0200)]
cleanups and portability fixes in optimised string methods

11 years agofix Numpy test by replacing 'char' buffer type by explicit 'signed char'
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'

11 years agodisable ctypes pyregr test - crashes with stdlib compilation
Stefan Behnel [Thu, 23 Aug 2012 11:06:24 +0000 (13:06 +0200)]
disable ctypes pyregr test - crashes with stdlib compilation

11 years agoAlways try global scope on class scope lookup failure
Vitja Makarov [Thu, 23 Aug 2012 05:36:22 +0000 (09:36 +0400)]
Always try global scope on class scope lookup failure

11 years agoRevert "fix lookup order in Python class scope"
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.

11 years agoSet DefNode's decorators to None after assignment synthesis
Vitja Makarov [Tue, 21 Aug 2012 19:52:42 +0000 (23:52 +0400)]
Set DefNode's decorators to None after assignment synthesis

11 years agoMake decorators an attribute of PyClassDefNode
Vitja Makarov [Tue, 21 Aug 2012 19:37:41 +0000 (23:37 +0400)]
Make decorators an attribute of PyClassDefNode

11 years agofix C compiler warning about unused function parameter in tp_clear()
Stefan Behnel [Tue, 21 Aug 2012 20:02:03 +0000 (22:02 +0200)]
fix C compiler warning about unused function parameter in tp_clear()

11 years agodelete blank lines from memoryview utility code
Stefan Behnel [Tue, 21 Aug 2012 19:41:32 +0000 (21:41 +0200)]
delete blank lines from memoryview utility code

11 years agowork around C compiler warning about unused label in optimised list/tuple looping...
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

11 years agofix compiler crash
Stefan Behnel [Tue, 21 Aug 2012 17:01:36 +0000 (19:01 +0200)]
fix compiler crash

11 years agofix lookup order in Python class scope
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

11 years agofix typo
Stefan Behnel [Tue, 21 Aug 2012 13:38:17 +0000 (15:38 +0200)]
fix typo

--HG--
extra : rebase_source : 31e506acbc041cb597ff14455a7d06b34aca0a70

11 years agoremoved duplicated test
Stefan Behnel [Tue, 21 Aug 2012 13:37:08 +0000 (15:37 +0200)]
removed duplicated test

--HG--
extra : rebase_source : 4f0c6c45b777f4f9eeece5f9ca1595753b9a9377

11 years agoFix one numpy test by specifying sign of char.
Robert Bradshaw [Tue, 21 Aug 2012 10:49:22 +0000 (03:49 -0700)]
Fix one numpy test by specifying sign of char.

11 years agoPy2.4 test fixes.
Robert Bradshaw [Tue, 21 Aug 2012 09:48:08 +0000 (02:48 -0700)]
Py2.4 test fixes.

11 years agoGuard C++ declarations with a directive.
Robert Bradshaw [Tue, 21 Aug 2012 07:51:23 +0000 (00:51 -0700)]
Guard C++ declarations with a directive.

11 years agoMore C++ class fixes, tests.
Robert Bradshaw [Tue, 21 Aug 2012 07:46:00 +0000 (00:46 -0700)]
More C++ class fixes, tests.

11 years agoAllow declaring C++ classes in Cython files.
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.

11 years agoAllow deterministic "generated by" string for easy comparison.
Robert Bradshaw [Tue, 21 Aug 2012 08:30:05 +0000 (01:30 -0700)]
Allow deterministic "generated by" string for easy comparison.

11 years agolooks like the declaration analysis phase is too early for building type conversion...
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

11 years agofix cpp_vector_in_generator test by calling create_from_py_utility_code() early enoug...
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

11 years agofix rich eq/ne comparisons with string literals if they return non-boolean values
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

11 years agocleaned up exported C-API of array.array object
Stefan Behnel [Mon, 20 Aug 2012 17:03:06 +0000 (19:03 +0200)]
cleaned up exported C-API of array.array object

11 years agoadd 'array' tag to test to enable special casing in test runner
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

11 years agoexclude comments from generated C file
Stefan Behnel [Mon, 20 Aug 2012 11:55:04 +0000 (13:55 +0200)]
exclude comments from generated C file

11 years agofix compiler crash on in-place buffer C division
Stefan Behnel [Mon, 20 Aug 2012 07:33:32 +0000 (09:33 +0200)]
fix compiler crash on in-place buffer C division

11 years agosupport 'from cpython.array cimport array' in addition to existing cimport forms
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

11 years agoFix declaration in cpp_templates test.
Robert Bradshaw [Fri, 17 Aug 2012 08:13:37 +0000 (01:13 -0700)]
Fix declaration in cpp_templates test.

11 years agoFix (obsolete) forward declared C++ subclass declarations.
Robert Bradshaw [Fri, 17 Aug 2012 07:57:40 +0000 (00:57 -0700)]
Fix (obsolete) forward declared C++ subclass declarations.

11 years agopyximport: make sure we encode extension file paths to 'str' in Py2 to work around...
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

11 years agofix for passing language_level externally as compiler directive
Stefan Behnel [Wed, 15 Aug 2012 22:42:14 +0000 (00:42 +0200)]
fix for passing language_level externally as compiler directive

11 years agoallow reassignments to C++ variables while iterating over the original value in a...
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

11 years agosimplify comparison
Stefan Behnel [Wed, 15 Aug 2012 12:58:07 +0000 (14:58 +0200)]
simplify comparison

11 years agofix potential leak of modifiable default argument
Stefan Behnel [Wed, 15 Aug 2012 12:57:44 +0000 (14:57 +0200)]
fix potential leak of modifiable default argument

11 years agominor code cleanup
Stefan Behnel [Wed, 15 Aug 2012 12:36:17 +0000 (14:36 +0200)]
minor code cleanup

11 years agoundo usage of __Pyx_NAMESTR() - not needed for dicts
Stefan Behnel [Wed, 15 Aug 2012 12:24:49 +0000 (14:24 +0200)]
undo usage of __Pyx_NAMESTR() - not needed for dicts

11 years agouse __Pyx_NAMESTR() macro when referring to module name
Stefan Behnel [Wed, 15 Aug 2012 11:50:09 +0000 (13:50 +0200)]
use __Pyx_NAMESTR() macro when referring to module name

11 years agominor code cleanups in module init code
Stefan Behnel [Wed, 15 Aug 2012 11:47:55 +0000 (13:47 +0200)]
minor code cleanups in module init code

11 years agofix error case refcounting bug 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

11 years agofix setting of directive 'set_initial_path' in pyximport after renaming it in the...
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

11 years agoremove duplicated condition
Stefan Behnel [Wed, 15 Aug 2012 10:47:12 +0000 (12:47 +0200)]
remove duplicated condition

11 years agoremoved unused variable
Stefan Behnel [Wed, 15 Aug 2012 10:17:17 +0000 (12:17 +0200)]
removed unused variable

11 years agouse completely separate workspaces for tests to fix cleanup on failures (and to make...
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)

11 years agosimplify code by inverting negated comparison
Stefan Behnel [Wed, 15 Aug 2012 08:46:07 +0000 (10:46 +0200)]
simplify code by inverting negated comparison

11 years agoMerge remote-tracking branch 'main/master'
Robert Bradshaw [Wed, 15 Aug 2012 08:37:30 +0000 (01:37 -0700)]
Merge remote-tracking branch 'main/master'

11 years agofix name setup for package __init__ modules, make sure package is registered when...
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

11 years agoOne more char test fix.
Robert Bradshaw [Wed, 15 Aug 2012 08:21:52 +0000 (01:21 -0700)]
One more char test fix.

11 years agofix undefined variable 'context' in compile_multiple()
Stefan Behnel [Wed, 15 Aug 2012 05:51:28 +0000 (07:51 +0200)]
fix undefined variable 'context' in compile_multiple()

11 years agoMerge branch 'char-buffers'
Robert Bradshaw [Tue, 14 Aug 2012 19:29:29 +0000 (12:29 -0700)]
Merge branch 'char-buffers'

11 years agonamespace clarification
Robert Bradshaw [Tue, 14 Aug 2012 19:27:46 +0000 (12:27 -0700)]
namespace clarification

11 years agoFix template comparison.
Robert Bradshaw [Tue, 14 Aug 2012 19:18:56 +0000 (12:18 -0700)]
Fix template comparison.

11 years agoFix C++ template subclassing.
Robert Bradshaw [Tue, 14 Aug 2012 18:43:28 +0000 (11:43 -0700)]
Fix C++ template subclassing.

11 years agoAnother cpp-class-as-cdef-class-member fix, fix test with side effect.
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.

11 years agoFix template types as class members.
Robert Bradshaw [Sun, 12 Aug 2012 05:55:30 +0000 (22:55 -0700)]
Fix template types as class members.

11 years agoFix cpp iterator test.
Robert Bradshaw [Sun, 12 Aug 2012 05:07:00 +0000 (22:07 -0700)]
Fix cpp iterator test.

11 years agoadded new failing C++ test for using a stack allocate C++ vector inside of a generator
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

11 years agoadded new failing C++ test for iterating over the pointer to a C++ vector
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

11 years agoadded C++ vector test that operates in nogil mode
Stefan Behnel [Sat, 11 Aug 2012 19:53:13 +0000 (21:53 +0200)]
added C++ vector test that operates in nogil mode

11 years agoadded 'except +' and 'nogil' declarations to shipped STL constructors
Stefan Behnel [Sat, 11 Aug 2012 19:51:53 +0000 (21:51 +0200)]
added 'except +' and 'nogil' declarations to shipped STL constructors

11 years agofix try-finally usage in STL vector test
Stefan Behnel [Sat, 11 Aug 2012 19:40:46 +0000 (21:40 +0200)]
fix try-finally usage in STL vector test

11 years agoclean up code generation in CmpNode and fix bug #784: conflicting result types for...
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

11 years agoproperly cast char* argument for PyBytes_FromString() from other char* types
Stefan Behnel [Sat, 11 Aug 2012 07:56:42 +0000 (09:56 +0200)]
properly cast char* argument for PyBytes_FromString() from other char* types

11 years agocomment
Stefan Behnel [Sat, 11 Aug 2012 06:15:38 +0000 (08:15 +0200)]
comment

11 years agodisable gdb support for --debug convenience option in Py<=2.5
Stefan Behnel [Sat, 11 Aug 2012 06:15:30 +0000 (08:15 +0200)]
disable gdb support for --debug convenience option in Py<=2.5

11 years agominor code simplification
Stefan Behnel [Sat, 11 Aug 2012 06:09:47 +0000 (08:09 +0200)]
minor code simplification

11 years agosupport 'from __future__ import absolute_import'
Stefan Behnel [Sat, 11 Aug 2012 06:07:27 +0000 (08:07 +0200)]
support 'from __future__ import absolute_import'

11 years agoLet signed char == char == unsigned char for buffer comparison.
Robert Bradshaw [Fri, 10 Aug 2012 20:03:57 +0000 (13:03 -0700)]
Let signed char == char == unsigned char for buffer comparison.

11 years agomerge
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

11 years agorst fix
Stefan Behnel [Fri, 10 Aug 2012 19:26:13 +0000 (21:26 +0200)]
rst fix

11 years agomove PyPy porting doc page to userguide (not a tutorial), move early-binding page...
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

11 years agoFix tests due to buffer char format change.
Robert Bradshaw [Fri, 10 Aug 2012 18:44:46 +0000 (11:44 -0700)]
Fix tests due to buffer char format change.

11 years agoUse 'c' rather than 'b' for buffer format of chars.
Robert Bradshaw [Fri, 10 Aug 2012 18:26:44 +0000 (11:26 -0700)]
Use 'c' rather than 'b' for buffer format of chars.

11 years agodisable non-portable assertion in test
Stefan Behnel [Thu, 9 Aug 2012 19:32:33 +0000 (21:32 +0200)]
disable non-portable assertion in test

11 years agoPy3 test fix (only failure reporting)
Stefan Behnel [Thu, 9 Aug 2012 19:30:49 +0000 (21:30 +0200)]
Py3 test fix (only failure reporting)

11 years agofix struct field 'is_running' for generator type: T_BOOL property expects char value
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

11 years agominor name fix in test
Stefan Behnel [Thu, 9 Aug 2012 19:15:41 +0000 (21:15 +0200)]
minor name fix in test

11 years agominor code cleanup in PrimaryCmpNode
Stefan Behnel [Thu, 9 Aug 2012 18:29:12 +0000 (20:29 +0200)]
minor code cleanup in PrimaryCmpNode

11 years agodisable the 'atexit' pyregr test: it calls the registered atexit handlers which trigg...
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

11 years agoproperly propagate string comparison optimisation into cascaded comparisons
Stefan Behnel [Thu, 9 Aug 2012 10:05:22 +0000 (12:05 +0200)]
properly propagate string comparison optimisation into cascaded comparisons

11 years agofix error message
Stefan Behnel [Thu, 9 Aug 2012 08:43:46 +0000 (10:43 +0200)]
fix error message

11 years agoDoc: fixing miscellaneous warnings and missing refs
Dimitri Tcaciuc [Thu, 9 Aug 2012 03:31:54 +0000 (20:31 -0700)]
Doc: fixing miscellaneous warnings and missing refs

11 years agoenable in-place compilation mode for pyximport when used from test runner (improves...
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)

11 years agodisable initial_file_path test in Py3.3 due to incompatibilities with new importlib 0.17b2
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

11 years agoPy2.4 test fix
Stefan Behnel [Tue, 7 Aug 2012 16:59:05 +0000 (18:59 +0200)]
Py2.4 test fix

11 years agoprepare release of 0.17b2
Stefan Behnel [Tue, 7 Aug 2012 16:52:26 +0000 (18:52 +0200)]
prepare release of 0.17b2

11 years agoadded test cases for pyximport
Stefan Behnel [Tue, 7 Aug 2012 15:22:11 +0000 (17:22 +0200)]
added test cases for pyximport

11 years agoavoid redundant code in tp_dealloc() and friends when inheriting from builtin types
Stefan Behnel [Tue, 7 Aug 2012 14:00:47 +0000 (16:00 +0200)]
avoid redundant code in tp_dealloc() and friends when inheriting from builtin types

11 years agofix initial __path__ setting test in Py3
Stefan Behnel [Tue, 7 Aug 2012 13:25:52 +0000 (15:25 +0200)]
fix initial __path__ setting test in Py3

11 years agofix refcount bug in initial __path__ setting
Stefan Behnel [Tue, 7 Aug 2012 13:23:15 +0000 (15:23 +0200)]
fix refcount bug in initial __path__ setting

11 years agofix end-to-end test output in Py3
Stefan Behnel [Tue, 7 Aug 2012 13:02:29 +0000 (15:02 +0200)]
fix end-to-end test output in Py3

11 years agowhen pyximporting a package __init__ module in place, make sure we provide __path__...
Stefan Behnel [Tue, 7 Aug 2012 12:19:18 +0000 (14:19 +0200)]
when pyximporting a package __init__ module in place, make sure we provide __path__ at module init time to support relative imports