platform/upstream/python-cython.git
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

11 years agorestored code in Symtab.py that fixed the module name for package compilation - still...
Stefan Behnel [Tue, 7 Aug 2012 12:00:36 +0000 (14:00 +0200)]
restored code in Symtab.py that fixed the module name for package compilation - still needed

11 years agoadded (and disabled) test case for type inference based crash
Stefan Behnel [Tue, 7 Aug 2012 11:59:21 +0000 (13:59 +0200)]
added (and disabled) test case for type inference based crash

11 years agoprevent infer_type() method from returning None on missing C++ declaration
Stefan Behnel [Mon, 6 Aug 2012 19:45:53 +0000 (21:45 +0200)]
prevent infer_type() method from returning None on missing C++ declaration

11 years agoprovide compiler directive to set __file__ and __path__ from the source path at modul...
Stefan Behnel [Mon, 6 Aug 2012 18:32:19 +0000 (20:32 +0200)]
provide compiler directive to set __file__ and __path__ from the source path at module init time

11 years agodrop dead code in Symtab.py: module name is properly determined elsewhere
Stefan Behnel [Mon, 6 Aug 2012 18:11:04 +0000 (20:11 +0200)]
drop dead code in Symtab.py: module name is properly determined elsewhere

11 years agoavoid reusing method argument variable
Stefan Behnel [Mon, 6 Aug 2012 18:09:34 +0000 (20:09 +0200)]
avoid reusing method argument variable

11 years agofix some glitches in last pyximport changes
Stefan Behnel [Mon, 6 Aug 2012 13:51:17 +0000 (15:51 +0200)]
fix some glitches in last pyximport changes

11 years agofix command line switch
Stefan Behnel [Mon, 6 Aug 2012 11:27:24 +0000 (13:27 +0200)]
fix command line switch

11 years agosimplify .py->.so loader setup in pyximport by reusing the already known path to...
Stefan Behnel [Mon, 6 Aug 2012 11:15:03 +0000 (13:15 +0200)]
simplify .py->.so loader setup in pyximport by reusing the already known path to the .so file

11 years agoreimplement 'inplace' option in pyxbuild, fix last commit
Stefan Behnel [Mon, 6 Aug 2012 11:10:44 +0000 (13:10 +0200)]
reimplement 'inplace' option in pyxbuild, fix last commit

11 years agosimplify inplace build setup in pyxbuild.py
Stefan Behnel [Mon, 6 Aug 2012 09:06:51 +0000 (11:06 +0200)]
simplify inplace build setup in pyxbuild.py

11 years agofix language level passing in pyximport's PyImporter
Stefan Behnel [Mon, 6 Aug 2012 08:53:33 +0000 (10:53 +0200)]
fix language level passing in pyximport's PyImporter

11 years agoallow configuring the source language level in pyximport use default to the platform...
Stefan Behnel [Sun, 5 Aug 2012 19:49:04 +0000 (21:49 +0200)]
allow configuring the source language level in pyximport use default to the platform version for .py files

11 years agoPy3 import fix in pyximport
Stefan Behnel [Sun, 5 Aug 2012 11:16:35 +0000 (13:16 +0200)]
Py3 import fix in pyximport

11 years agofix tp_traverse()/tp_clear()/tp_dealloc() calls for cimported types after module...
Stefan Behnel [Sat, 4 Aug 2012 20:37:44 +0000 (22:37 +0200)]
fix tp_traverse()/tp_clear()/tp_dealloc() calls for cimported types after module cleanup

11 years agoremoved confusing dead code
Stefan Behnel [Sat, 4 Aug 2012 18:11:10 +0000 (20:11 +0200)]
removed confusing dead code

11 years agofix typo
Stefan Behnel [Sat, 4 Aug 2012 17:55:37 +0000 (19:55 +0200)]
fix typo

11 years agosafely clear ext type fields on tp_dealloc()
Stefan Behnel [Sat, 4 Aug 2012 13:39:35 +0000 (15:39 +0200)]
safely clear ext type fields on tp_dealloc()

11 years agoreduce code duplication for DECREF code generation
Stefan Behnel [Sat, 4 Aug 2012 13:37:31 +0000 (15:37 +0200)]
reduce code duplication for DECREF code generation

11 years agoreverted tp_dealloc() call patch
Stefan Behnel [Sat, 4 Aug 2012 12:33:49 +0000 (14:33 +0200)]
reverted tp_dealloc() call patch

11 years agotest runner: enable cygdb support for --debug option
Stefan Behnel [Sat, 4 Aug 2012 12:12:23 +0000 (14:12 +0200)]
test runner: enable cygdb support for --debug option