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

11 years agofix crashes when deallocating instances of cimported types after module cleanup,...
Stefan Behnel [Sat, 4 Aug 2012 06:44:34 +0000 (08:44 +0200)]
fix crashes when deallocating instances of cimported types after module cleanup, patch by Lisandro Dalcin

11 years agosuppress more output in cythonize() when 'quiet' flag is passed
Stefan Behnel [Thu, 2 Aug 2012 20:42:45 +0000 (22:42 +0200)]
suppress more output in cythonize() when 'quiet' flag is passed

12 years agoFix numpy fused types dispatch test
Mark Florisson [Wed, 1 Aug 2012 22:04:00 +0000 (23:04 +0100)]
Fix numpy fused types dispatch test

12 years agoMerge pull request #140 from bfroehle/cython_inline_ctx
Robert Bradshaw [Wed, 1 Aug 2012 20:11:41 +0000 (13:11 -0700)]
Merge pull request #140 from bfroehle/cython_inline_ctx

cython_inline: Stop passing unused `ctx` parameter to `cythonize`.

12 years agosupport in-place building for pyximport
Stefan Behnel [Wed, 1 Aug 2012 12:06:38 +0000 (14:06 +0200)]
support in-place building for pyximport

12 years agofix compiler crash in unicode encoding optimiser
Stefan Behnel [Wed, 1 Aug 2012 05:20:01 +0000 (07:20 +0200)]
fix compiler crash in unicode encoding optimiser

12 years agocython_inline: Stop passing unused `ctx` parameter to `cythonize`.
Bradley M. Froehle [Wed, 1 Aug 2012 00:51:16 +0000 (17:51 -0700)]
cython_inline: Stop passing unused `ctx` parameter to `cythonize`.

12 years agodeleted unused code
Stefan Behnel [Tue, 31 Jul 2012 19:50:05 +0000 (21:50 +0200)]
deleted unused code

12 years agodetermine buffer typegroup of integer dtypes based on signedness at C compile time
Stefan Behnel [Tue, 31 Jul 2012 19:49:20 +0000 (21:49 +0200)]
determine buffer typegroup of integer dtypes based on signedness at C compile time

12 years agoC code simplification in memory view type format code
Stefan Behnel [Tue, 31 Jul 2012 18:05:37 +0000 (20:05 +0200)]
C code simplification in memory view type format code

12 years agofix unicode encoding optimisation when running in Python 3
Stefan Behnel [Tue, 31 Jul 2012 17:58:59 +0000 (19:58 +0200)]
fix unicode encoding optimisation when running in Python 3

12 years agoavoid overly redundant recoding in memory view dtype code (format_from_typeinfo())
Stefan Behnel [Tue, 31 Jul 2012 15:13:57 +0000 (17:13 +0200)]
avoid overly redundant recoding in memory view dtype code (format_from_typeinfo())

12 years agohandle 'cpp' tag in end-to-end srctree tests
Stefan Behnel [Sun, 29 Jul 2012 10:07:23 +0000 (12:07 +0200)]
handle 'cpp' tag in end-to-end srctree tests

12 years agofix typo
Stefan Behnel [Sat, 28 Jul 2012 05:38:32 +0000 (07:38 +0200)]
fix typo

12 years agoavoid hard dependency on gzip module
Stefan Behnel [Sat, 28 Jul 2012 05:23:05 +0000 (07:23 +0200)]
avoid hard dependency on gzip module

12 years agofix setup.py script in Demos dir
Stefan Behnel [Fri, 27 Jul 2012 17:20:24 +0000 (19:20 +0200)]
fix setup.py script in Demos dir

12 years agoA 10x cython.inline speed improvement.
Robert Bradshaw [Thu, 26 Jul 2012 17:30:40 +0000 (10:30 -0700)]
A 10x cython.inline speed improvement.

12 years agoDon't reload inline module if it's already loaded.
Robert Bradshaw [Thu, 26 Jul 2012 17:17:14 +0000 (10:17 -0700)]
Don't reload inline module if it's already loaded.