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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

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

12 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

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

12 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

12 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

12 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

12 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

12 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

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

12 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

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

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

12 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()

12 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

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

12 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

12 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

12 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.

12 years agoMerge pull request #139 from echlebek/patch-1
Robert Bradshaw [Thu, 26 Jul 2012 17:11:11 +0000 (10:11 -0700)]
Merge pull request #139 from echlebek/patch-1

Update docs/src/userguide/external_C_code.rst

12 years agoMerge pull request #138 from yarikoptic/master
Robert Bradshaw [Thu, 26 Jul 2012 17:01:12 +0000 (10:01 -0700)]
Merge pull request #138 from yarikoptic/master

improve detection of the extension suffix for cython_inline

12 years agoUpdate docs/src/userguide/external_C_code.rst
Eric Chlebek [Thu, 26 Jul 2012 16:52:35 +0000 (09:52 -0700)]
Update docs/src/userguide/external_C_code.rst

12 years agoUpdate docs/src/userguide/external_C_code.rst
Eric Chlebek [Thu, 26 Jul 2012 16:38:53 +0000 (09:38 -0700)]
Update docs/src/userguide/external_C_code.rst

12 years agoimprove detection of the extension suffix for cython_inline
Yaroslav Halchenko [Thu, 26 Jul 2012 14:48:47 +0000 (10:48 -0400)]
improve detection of the extension suffix for cython_inline

reliance on imp.get_suffixes()[0] broke cython_inline on Debian systems
with support of multiarch where the first entry corresponded to the multiarch
suffix while distutil were using non-multiarch version while actually building
the extension

Reference: http://mail.python.org/pipermail//cython-devel/2012-July/002933.html

Now it would cache the suffix used by distutils and reuse it within the
session

12 years agoPy3 test fix
Stefan Behnel [Wed, 25 Jul 2012 10:44:00 +0000 (12:44 +0200)]
Py3 test fix

12 years agofix temp result release 'hack' for stack allocated literal lists
Stefan Behnel [Wed, 25 Jul 2012 10:11:22 +0000 (12:11 +0200)]
fix temp result release 'hack' for stack allocated literal lists

12 years agoadded failing test case for literal lists to make sure we fix it for 0.17
Stefan Behnel [Wed, 25 Jul 2012 06:04:50 +0000 (08:04 +0200)]
added failing test case for literal lists to make sure we fix it for 0.17

12 years agoenable previously unused optimisation code for bytes iteration (found via coverage...
Stefan Behnel [Tue, 24 Jul 2012 17:30:32 +0000 (19:30 +0200)]
enable previously unused optimisation code for bytes iteration (found via coverage analysis)

12 years agofix copy&paste bug
Stefan Behnel [Tue, 24 Jul 2012 16:45:48 +0000 (18:45 +0200)]
fix copy&paste bug

12 years agorequire Py2.4+
Stefan Behnel [Tue, 24 Jul 2012 16:40:51 +0000 (18:40 +0200)]
require Py2.4+

12 years agoremoved dead code
Stefan Behnel [Tue, 24 Jul 2012 16:38:52 +0000 (18:38 +0200)]
removed dead code

12 years agofix type inference for overloaded C++ operators
Stefan Behnel [Tue, 24 Jul 2012 13:57:54 +0000 (15:57 +0200)]
fix type inference for overloaded C++ operators

12 years agoAdded tag 0.17.beta1 for changeset 5320ddd8c3a6
Stefan Behnel [Mon, 23 Jul 2012 20:35:16 +0000 (22:35 +0200)]
Added tag 0.17.beta1 for changeset 5320ddd8c3a6

12 years agoprepare release of 0.17 beta1 0.17.beta1
Stefan Behnel [Mon, 23 Jul 2012 19:21:48 +0000 (21:21 +0200)]
prepare release of 0.17 beta1

12 years agoPyPy doc section on low-level access to builtin types in cpyext
Stefan Behnel [Mon, 23 Jul 2012 18:41:03 +0000 (20:41 +0200)]
PyPy doc section on low-level access to builtin types in cpyext

12 years agofix 'type' adaptation code to work with PyPy
Stefan Behnel [Mon, 23 Jul 2012 17:52:12 +0000 (19:52 +0200)]
fix 'type' adaptation code to work with PyPy

12 years agoadded test to make sure 'type' works as argument type
Stefan Behnel [Mon, 23 Jul 2012 17:51:39 +0000 (19:51 +0200)]
added test to make sure 'type' works as argument type

12 years agoremoved unused code
Stefan Behnel [Mon, 23 Jul 2012 16:48:52 +0000 (18:48 +0200)]
removed unused code

12 years agoMerge pull request #126 from bfroehle/_cpython_type_PyTypeObject
scoder [Mon, 23 Jul 2012 16:44:43 +0000 (09:44 -0700)]
Merge pull request #126 from bfroehle/_cpython_type_PyTypeObject

cpython.type: Add ctypedef for `__builtin__.type`

12 years agofix modifiers of functions with overrides in external .pxd files
Stefan Behnel [Mon, 23 Jul 2012 08:30:45 +0000 (10:30 +0200)]
fix modifiers of functions with overrides in external .pxd files

12 years agominor cleanup in test runner
Stefan Behnel [Mon, 23 Jul 2012 06:29:03 +0000 (08:29 +0200)]
minor cleanup in test runner

12 years agoFix missing error when overriding final methods of cimported classes.
Robert Bradshaw [Fri, 20 Jul 2012 18:19:02 +0000 (11:19 -0700)]
Fix missing error when overriding final methods of cimported classes.

12 years agoExclude numpy memoryview tests pre-2.6
Mark Florisson [Sat, 21 Jul 2012 17:01:54 +0000 (18:01 +0100)]
Exclude numpy memoryview tests pre-2.6

12 years agostring docs: moved comments on C++ string into their own section
Stefan Behnel [Thu, 19 Jul 2012 19:12:51 +0000 (21:12 +0200)]
string docs: moved comments on C++ string into their own section

12 years agodoc fix
Stefan Behnel [Thu, 19 Jul 2012 18:22:55 +0000 (20:22 +0200)]
doc fix

12 years agominor cleanup
Stefan Behnel [Thu, 19 Jul 2012 11:24:31 +0000 (13:24 +0200)]
minor cleanup

12 years agodoc fix
Stefan Behnel [Thu, 19 Jul 2012 10:36:04 +0000 (12:36 +0200)]
doc fix

12 years agodoc update on string decoding
Stefan Behnel [Thu, 19 Jul 2012 09:06:14 +0000 (11:06 +0200)]
doc update on string decoding

12 years agomoved C string decoding utility code from Optimize.c to StringTools.c
Stefan Behnel [Thu, 19 Jul 2012 08:18:19 +0000 (10:18 +0200)]
moved C string decoding utility code from Optimize.c to StringTools.c

12 years agosupport slicing with negative indices for C strings and C++ strings during decoding
Stefan Behnel [Thu, 19 Jul 2012 08:15:41 +0000 (10:15 +0200)]
support slicing with negative indices for C strings and C++ strings during decoding

12 years agofix build
Stefan Behnel [Wed, 18 Jul 2012 21:06:34 +0000 (23:06 +0200)]
fix build

12 years agoprevent calling PyEval_InitThreads() when CPython is built without threads
Stefan Behnel [Wed, 18 Jul 2012 21:00:36 +0000 (23:00 +0200)]
prevent calling PyEval_InitThreads() when CPython is built without threads

12 years agomoved method dispatcher implementation from OptimizeBuiltinCalls class into new Metho...
Stefan Behnel [Wed, 18 Jul 2012 20:49:24 +0000 (22:49 +0200)]
moved method dispatcher implementation from OptimizeBuiltinCalls class into new MethodDispatcherTransform class in Visitor.py to enable reuse

12 years agorewrite of sliced char* decoding as utility functions, implemented efficient sliced...
Stefan Behnel [Wed, 18 Jul 2012 20:24:14 +0000 (22:24 +0200)]
rewrite of sliced char* decoding as utility functions, implemented efficient sliced decoding for C++ std::string

--HG--
extra : rebase_source : e134f5595be98eb990ab2195e8208940efb171fe

12 years agoFix function prototype generation for unused but public/api entries
Lisandro Dalcin [Wed, 18 Jul 2012 20:00:52 +0000 (17:00 -0300)]
Fix function prototype generation for unused but public/api entries

12 years agoadded bug test case by Gabriel Jacobo
Stefan Behnel [Tue, 17 Jul 2012 12:55:20 +0000 (14:55 +0200)]
added bug test case by Gabriel Jacobo

12 years agofix circular import
Stefan Behnel [Tue, 17 Jul 2012 11:26:26 +0000 (13:26 +0200)]
fix circular import

12 years agoMerge pull request #127 from bfroehle/_missing_cimport_cython
scoder [Tue, 17 Jul 2012 08:55:36 +0000 (01:55 -0700)]
Merge pull request #127 from bfroehle/_missing_cimport_cython

Fix "missing cimport: ... cython" warning.

12 years agominor code cleanup
Stefan Behnel [Tue, 17 Jul 2012 04:20:59 +0000 (06:20 +0200)]
minor code cleanup

12 years agofix crash due to moved utility code (apparently in untested code)
Stefan Behnel [Tue, 17 Jul 2012 04:20:22 +0000 (06:20 +0200)]
fix crash due to moved utility code (apparently in untested code)

12 years agoIncluded files dependency fix in cythonize.
Robert Bradshaw [Sun, 15 Jul 2012 06:41:40 +0000 (23:41 -0700)]
Included files dependency fix in cythonize.

12 years agodoc section on known problems with PyPy
Stefan Behnel [Tue, 10 Jul 2012 18:30:20 +0000 (20:30 +0200)]
doc section on known problems with PyPy

12 years agoanother PyPy fix for double conversion: PyNumber_Float() to properly convert strings...
Stefan Behnel [Tue, 10 Jul 2012 11:13:07 +0000 (13:13 +0200)]
another PyPy fix for double conversion: PyNumber_Float() to properly convert strings etc.

12 years agofix with_gil test in PyPy
Stefan Behnel [Tue, 10 Jul 2012 10:20:33 +0000 (12:20 +0200)]
fix with_gil test in PyPy

12 years agofix (and simplify) object->double conversion in PyPy
Stefan Behnel [Tue, 10 Jul 2012 09:56:59 +0000 (11:56 +0200)]
fix (and simplify) object->double conversion in PyPy

12 years agofix test exclusions
Stefan Behnel [Tue, 10 Jul 2012 06:01:36 +0000 (08:01 +0200)]
fix test exclusions

12 years agocompile fix for test under PyPy
Stefan Behnel [Mon, 9 Jul 2012 19:43:25 +0000 (21:43 +0200)]
compile fix for test under PyPy

12 years agofix exception handling for optimised len(builtin)
Stefan Behnel [Mon, 9 Jul 2012 19:36:00 +0000 (21:36 +0200)]
fix exception handling for optimised len(builtin)

12 years agoadapt test to PyPy
Stefan Behnel [Mon, 9 Jul 2012 19:17:06 +0000 (21:17 +0200)]
adapt test to PyPy

12 years agoadjusted doctest output to PyPy
Stefan Behnel [Mon, 9 Jul 2012 19:10:32 +0000 (21:10 +0200)]
adjusted doctest output to PyPy

12 years agodisabled memslice test in Py2.4 - currently broken
Stefan Behnel [Mon, 9 Jul 2012 18:47:46 +0000 (20:47 +0200)]
disabled memslice test in Py2.4 - currently broken

12 years agodisabled numpy_memoryview test in Py2.4 - currently broken
Stefan Behnel [Mon, 9 Jul 2012 18:45:41 +0000 (20:45 +0200)]
disabled numpy_memoryview test in Py2.4 - currently broken

12 years agosuppress 'unused argument' warning in test code
Stefan Behnel [Mon, 9 Jul 2012 10:59:31 +0000 (12:59 +0200)]
suppress 'unused argument' warning in test code

12 years agosuppress 'unused argument' warning in test code
Stefan Behnel [Mon, 9 Jul 2012 10:57:45 +0000 (12:57 +0200)]
suppress 'unused argument' warning in test code

12 years agofix inclusion of .cpp utility files in setup.py
Stefan Behnel [Mon, 9 Jul 2012 07:50:19 +0000 (09:50 +0200)]
fix inclusion of .cpp utility files in setup.py

12 years agouse <ios> instead of <iostream>
Stefan Behnel [Sun, 8 Jul 2012 20:28:18 +0000 (22:28 +0200)]
use <ios> instead of <iostream>