platform/upstream/python-cython.git
11 years agofix left-overs from last commit
Stefan Behnel [Tue, 1 Jan 2013 22:19:42 +0000 (23:19 +0100)]
fix left-overs from last commit

11 years agomake AnalyseDeclarationsTransform inherit from EnvTransform to fix inconsistencies...
Stefan Behnel [Tue, 1 Jan 2013 21:14:32 +0000 (22:14 +0100)]
make AnalyseDeclarationsTransform inherit from EnvTransform to fix inconsistencies in scope tracking

11 years agodisable Py2.5 builds in travis - their installation appears to be broken
Stefan Behnel [Tue, 1 Jan 2013 08:14:19 +0000 (09:14 +0100)]
disable Py2.5 builds in travis - their installation appears to be broken

11 years agosupport non-trivial counter targets for enumerate() loop optimisation
Stefan Behnel [Tue, 1 Jan 2013 07:34:37 +0000 (08:34 +0100)]
support non-trivial counter targets for enumerate() loop optimisation

11 years agofix and normalise None index handling in SliceIndexNode
Stefan Behnel [Tue, 1 Jan 2013 07:14:28 +0000 (08:14 +0100)]
fix and normalise None index handling in SliceIndexNode

11 years agoadd tests
Stefan Behnel [Tue, 1 Jan 2013 06:38:46 +0000 (07:38 +0100)]
add tests

11 years agospeed up NodeFinder
Stefan Behnel [Tue, 1 Jan 2013 06:25:17 +0000 (07:25 +0100)]
speed up NodeFinder

11 years agofix compiler crash by using transform.visit() instead of trying to restart it while...
Stefan Behnel [Tue, 1 Jan 2013 06:07:53 +0000 (07:07 +0100)]
fix compiler crash by using transform.visit() instead of trying to restart it while it's running

11 years agoconvert IterationTransform to inherit from EnvTransform for better scope tracking
Stefan Behnel [Mon, 31 Dec 2012 22:08:04 +0000 (23:08 +0100)]
convert IterationTransform to inherit from EnvTransform for better scope tracking

11 years agofix doc typo
Stefan Behnel [Mon, 31 Dec 2012 15:22:11 +0000 (16:22 +0100)]
fix doc typo

11 years agoadd warning to string tutorial that users should avoid char* in favour of Python...
Stefan Behnel [Mon, 31 Dec 2012 15:10:38 +0000 (16:10 +0100)]
add warning to string tutorial that users should avoid char* in favour of Python objects unless they know what they are doing

11 years agofix with-statement when context manager comes from an inlined def-function call
Stefan Behnel [Mon, 31 Dec 2012 11:56:04 +0000 (12:56 +0100)]
fix with-statement when context manager comes from an inlined def-function call

11 years agoadd test case
Stefan Behnel [Mon, 31 Dec 2012 10:08:08 +0000 (11:08 +0100)]
add test case

11 years agooptimise iteration over dict(something).items()
Stefan Behnel [Mon, 31 Dec 2012 09:59:15 +0000 (10:59 +0100)]
optimise iteration over dict(something).items()

11 years agoavoid old-style classes in flow analysis code
Stefan Behnel [Sun, 30 Dec 2012 21:29:07 +0000 (22:29 +0100)]
avoid old-style classes in flow analysis code

11 years agofix build by removing unused code
Stefan Behnel [Sun, 30 Dec 2012 20:53:25 +0000 (21:53 +0100)]
fix build by removing unused code

11 years agoimprove initialisation analysis for entries from outer closures
Stefan Behnel [Sun, 30 Dec 2012 17:25:40 +0000 (18:25 +0100)]
improve initialisation analysis for entries from outer closures

11 years agodelete dead code (type.is_ptr never coincides with type.is_int)
Stefan Behnel [Sun, 30 Dec 2012 12:22:13 +0000 (13:22 +0100)]
delete dead code (type.is_ptr never coincides with type.is_int)

11 years agomake sure entry.all_entries() includes the defining entry
Stefan Behnel [Sun, 30 Dec 2012 11:49:49 +0000 (12:49 +0100)]
make sure entry.all_entries() includes the defining entry

11 years agoprevent default arguments from unnecessarily ending up in closures
Stefan Behnel [Sun, 30 Dec 2012 10:21:59 +0000 (11:21 +0100)]
prevent default arguments from unnecessarily ending up in closures

11 years agocoerce closure default arguments in outer function scope, not in global scope
Stefan Behnel [Sun, 30 Dec 2012 08:59:33 +0000 (09:59 +0100)]
coerce closure default arguments in outer function scope, not in global scope

11 years agomerge
Stefan Behnel [Sat, 29 Dec 2012 20:55:07 +0000 (21:55 +0100)]
merge

11 years agofix evaluation of assignment order when considering DefNode calls for inlining
Stefan Behnel [Sat, 29 Dec 2012 16:25:51 +0000 (17:25 +0100)]
fix evaluation of assignment order when considering DefNode calls for inlining

11 years agofix cross-closure analysis for names redefined inside of a closure function
Stefan Behnel [Sat, 29 Dec 2012 15:28:06 +0000 (16:28 +0100)]
fix cross-closure analysis for names redefined inside of a closure function

11 years agoOverflow benchmarks.
Robert Bradshaw [Fri, 28 Dec 2012 20:27:39 +0000 (12:27 -0800)]
Overflow benchmarks.

11 years agoMore overflow testing.
Robert Bradshaw [Fri, 28 Dec 2012 20:27:12 +0000 (12:27 -0800)]
More overflow testing.

11 years agoMinor cleanup.
Robert Bradshaw [Fri, 28 Dec 2012 20:27:03 +0000 (12:27 -0800)]
Minor cleanup.

11 years agoDirective for overflow folding.
Robert Bradshaw [Fri, 28 Dec 2012 20:25:12 +0000 (12:25 -0800)]
Directive for overflow folding.

11 years agoCheaper overflow checks for nested expressions.
Robert Bradshaw [Fri, 28 Dec 2012 01:37:27 +0000 (17:37 -0800)]
Cheaper overflow checks for nested expressions.

11 years agoClarify declaration sharing example.
Robert Bradshaw [Thu, 27 Dec 2012 22:40:49 +0000 (14:40 -0800)]
Clarify declaration sharing example.

11 years agoreimplement cross-closure type inference using a dedicated LocalEntry class for entry...
Stefan Behnel [Wed, 26 Dec 2012 11:30:30 +0000 (12:30 +0100)]
reimplement cross-closure type inference using a dedicated LocalEntry class for entry copies in closures to keep closure knowledge in one place

11 years agoimprove error output in test case
Stefan Behnel [Wed, 26 Dec 2012 11:25:34 +0000 (12:25 +0100)]
improve error output in test case

11 years agoadd test case for argument evaluation order in inlined DefNode calls
Stefan Behnel [Mon, 24 Dec 2012 10:22:51 +0000 (11:22 +0100)]
add test case for argument evaluation order in inlined DefNode calls

11 years agoprevent InlinedDefNodeCallNode from being considered 'simple' by making CallNode...
Stefan Behnel [Mon, 24 Dec 2012 07:34:40 +0000 (08:34 +0100)]
prevent InlinedDefNodeCallNode from being considered 'simple' by making CallNode generally non-simple

11 years agochangelog
Stefan Behnel [Sun, 23 Dec 2012 19:39:06 +0000 (20:39 +0100)]
changelog

11 years agoenable compile time DefNode call resolution for nested functions
Stefan Behnel [Sun, 23 Dec 2012 19:38:55 +0000 (20:38 +0100)]
enable compile time DefNode call resolution for nested functions

11 years agofix test that failed due to improved type inference
Stefan Behnel [Sun, 23 Dec 2012 19:35:17 +0000 (20:35 +0100)]
fix test that failed due to improved type inference

11 years agoadd pointer test to cross-closure type inference tests
Stefan Behnel [Sun, 23 Dec 2012 19:33:52 +0000 (20:33 +0100)]
add pointer test to cross-closure type inference tests

11 years agoadd safety check for cross-closure type inference
Stefan Behnel [Sun, 23 Dec 2012 19:02:00 +0000 (20:02 +0100)]
add safety check for cross-closure type inference

11 years agoimplement type inference across closures
Stefan Behnel [Sun, 23 Dec 2012 18:56:42 +0000 (19:56 +0100)]
implement type inference across closures

11 years agosupport @cython.final decorator in override .pxd files
Stefan Behnel [Sat, 22 Dec 2012 10:06:17 +0000 (11:06 +0100)]
support @cython.final decorator in override .pxd files

11 years agominor code cleanup
Stefan Behnel [Sat, 22 Dec 2012 08:42:05 +0000 (09:42 +0100)]
minor code cleanup

11 years agominor code cleanup
Stefan Behnel [Sat, 22 Dec 2012 08:40:11 +0000 (09:40 +0100)]
minor code cleanup

11 years agoenable 'optimize.inline_defnode_calls' in cystdlib.py build script
Stefan Behnel [Sat, 22 Dec 2012 08:09:13 +0000 (09:09 +0100)]
enable 'optimize.inline_defnode_calls' in cystdlib.py build script

11 years agoremove unnecessary option (and source of failures) from pyximport end-to-end test
Stefan Behnel [Fri, 21 Dec 2012 17:34:06 +0000 (18:34 +0100)]
remove unnecessary option (and source of failures) from pyximport end-to-end test

11 years agodisable Python versions that travis doesn't currently support
Stefan Behnel [Fri, 21 Dec 2012 17:29:15 +0000 (18:29 +0100)]
disable Python versions that travis doesn't currently support

11 years agodon't care about pypy results in travis build
Stefan Behnel [Fri, 21 Dec 2012 17:25:35 +0000 (18:25 +0100)]
don't care about pypy results in travis build

11 years agoupdate travis/tox test config
Stefan Behnel [Fri, 21 Dec 2012 17:03:46 +0000 (18:03 +0100)]
update travis/tox test config

11 years agoconvert some comments to docstrings
Stefan Behnel [Fri, 21 Dec 2012 14:01:31 +0000 (15:01 +0100)]
convert some comments to docstrings

11 years agoanalyse loop variable in scoped comprehensions as local variable (enables control...
Stefan Behnel [Thu, 20 Dec 2012 22:57:34 +0000 (23:57 +0100)]
analyse loop variable in scoped comprehensions as local variable (enables control flow based optimisations)

11 years agofix unused variable warning in utility code
Stefan Behnel [Thu, 20 Dec 2012 22:54:52 +0000 (23:54 +0100)]
fix unused variable warning in utility code

11 years agoremove empty lines from type conversion utility code on write
Stefan Behnel [Thu, 20 Dec 2012 22:10:08 +0000 (23:10 +0100)]
remove empty lines from type conversion utility code on write

11 years agoadd comment
Stefan Behnel [Thu, 20 Dec 2012 21:50:25 +0000 (22:50 +0100)]
add comment

11 years agoMerge pull request #171 from bfroehle/py_limited_api
scoder [Thu, 20 Dec 2012 06:29:35 +0000 (22:29 -0800)]
Merge pull request #171 from bfroehle/py_limited_api

Fix __Pyx_ImportType if #Py_LIMITED_API is defined.

11 years agoFix __Pyx_ImportType if #Py_LIMITED_API is defined.
Bradley M. Froehle [Wed, 19 Dec 2012 20:30:47 +0000 (12:30 -0800)]
Fix __Pyx_ImportType if #Py_LIMITED_API is defined.

11 years agoMerge pull request #159 from larsmans/memoryview-docs
Mark Florisson [Tue, 18 Dec 2012 21:34:30 +0000 (13:34 -0800)]
Merge pull request #159 from larsmans/memoryview-docs

Fix first example in memoryview docs

11 years agomerge
Stefan Behnel [Mon, 17 Dec 2012 06:27:25 +0000 (07:27 +0100)]
merge

11 years agoupdate Sphinx docs config
Stefan Behnel [Mon, 17 Dec 2012 06:26:27 +0000 (07:26 +0100)]
update Sphinx docs config

11 years agoCast extension types in memoryviews for C++ code
Mark Florisson [Sun, 16 Dec 2012 14:06:58 +0000 (14:06 +0000)]
Cast extension types in memoryviews for C++ code

11 years agoadd PDF doc building target
Stefan Behnel [Sun, 16 Dec 2012 17:19:15 +0000 (18:19 +0100)]
add PDF doc building target

11 years agoinclude PDF-Builder in Sphinx conf (if installed)
Stefan Behnel [Sun, 16 Dec 2012 17:19:03 +0000 (18:19 +0100)]
include PDF-Builder in Sphinx conf (if installed)

11 years agofix version extraction in Sphinx build
Stefan Behnel [Sun, 16 Dec 2012 16:56:37 +0000 (17:56 +0100)]
fix version extraction in Sphinx build

11 years agoPy3 test fixes
Stefan Behnel [Sun, 16 Dec 2012 16:33:04 +0000 (17:33 +0100)]
Py3 test fixes

11 years agoprevent special __weakref__ attribute from triggering generation of garbage collectio...
Stefan Behnel [Sun, 16 Dec 2012 14:17:14 +0000 (15:17 +0100)]
prevent special __weakref__ attribute from triggering generation of garbage collection code for the type

11 years agoenable working tests from bugs.txt
Stefan Behnel [Sun, 16 Dec 2012 13:59:55 +0000 (14:59 +0100)]
enable working tests from bugs.txt

11 years agoadd comment in test
Stefan Behnel [Sun, 16 Dec 2012 13:55:21 +0000 (14:55 +0100)]
add comment in test

11 years agodisable checks in test that are unrelated to the tested behaviour
Stefan Behnel [Sun, 16 Dec 2012 13:49:11 +0000 (14:49 +0100)]
disable checks in test that are unrelated to the tested behaviour

11 years agoadd .py test for 'binding' effect
Stefan Behnel [Sun, 16 Dec 2012 13:44:32 +0000 (14:44 +0100)]
add .py test for 'binding' effect

--HG--
rename : tests/run/function_as_method_T494.pyx => tests/run/function_as_method_py_T494.py

11 years agofix test
Stefan Behnel [Sun, 16 Dec 2012 13:35:31 +0000 (14:35 +0100)]
fix test

11 years agomake sure utility code loaded for header files and module preamble gets properly...
Stefan Behnel [Sun, 16 Dec 2012 13:24:01 +0000 (14:24 +0100)]
make sure utility code loaded for header files and module preamble gets properly formatted

11 years agodrop 'vile hack' by restricting state changes of AttributeNode during infer_type...
Stefan Behnel [Sun, 16 Dec 2012 13:14:39 +0000 (14:14 +0100)]
drop 'vile hack' by restricting state changes of AttributeNode during infer_type() to what analyse_types() does

11 years agofix warning about unused temp variable when both FlattenInListTransform and SwitchTra...
Stefan Behnel [Sun, 16 Dec 2012 11:33:48 +0000 (12:33 +0100)]
fix warning about unused temp variable when both FlattenInListTransform and SwitchTransform are applied

11 years agopropagate constant_result for special case in FlattenInListTransform
Stefan Behnel [Sun, 16 Dec 2012 09:43:13 +0000 (10:43 +0100)]
propagate constant_result for special case in FlattenInListTransform

11 years agopropagate constant_result when folding lists into tuples
Stefan Behnel [Sun, 16 Dec 2012 09:14:08 +0000 (10:14 +0100)]
propagate constant_result when folding lists into tuples

11 years agofold 'x in [a,b,c]' into 'x in (a,b,c)' as tuples are more efficient than lists
Stefan Behnel [Sun, 16 Dec 2012 09:04:23 +0000 (10:04 +0100)]
fold 'x in [a,b,c]' into 'x in (a,b,c)' as tuples are more efficient than lists

11 years agoMerge pull request #170 from joshayers/docfix
scoder [Sun, 16 Dec 2012 08:10:26 +0000 (00:10 -0800)]
Merge pull request #170 from joshayers/docfix

Update documentation of extension type __dealloc__ method.

11 years agoMinor cleanup of documentation markup.
Josh Ayers [Sat, 15 Dec 2012 23:26:17 +0000 (15:26 -0800)]
Minor cleanup of documentation markup.

11 years agoUpdated documentation of __dealloc__ method.
Josh Ayers [Sat, 15 Dec 2012 23:24:19 +0000 (15:24 -0800)]
Updated documentation of __dealloc__ method.

Added note that the __dealloc__ method of a superclass is always called, even if it is overridden in a subclass.

11 years agooptimise bytes.decode()
Stefan Behnel [Sat, 15 Dec 2012 17:07:09 +0000 (18:07 +0100)]
optimise bytes.decode()

11 years agoclean up some code
Stefan Behnel [Sat, 15 Dec 2012 09:42:56 +0000 (10:42 +0100)]
clean up some code

11 years agoremove unused imports
Stefan Behnel [Sat, 15 Dec 2012 08:56:33 +0000 (09:56 +0100)]
remove unused imports

11 years agomerge
Stefan Behnel [Sat, 15 Dec 2012 08:49:31 +0000 (09:49 +0100)]
merge

11 years agoenable 'inline_defnode_calls' optimisation for benchmarks (even though they don't...
Stefan Behnel [Sat, 15 Dec 2012 08:44:13 +0000 (09:44 +0100)]
enable 'inline_defnode_calls' optimisation for benchmarks (even though they don't benefit currently)

11 years agoadd test case
Stefan Behnel [Sat, 15 Dec 2012 08:43:21 +0000 (09:43 +0100)]
add test case

11 years agoadd comment
Stefan Behnel [Sat, 15 Dec 2012 08:42:57 +0000 (09:42 +0100)]
add comment

11 years agoMerge pull request #169 from cgohlke/patch-2
Robert Bradshaw [Sat, 15 Dec 2012 00:51:22 +0000 (16:51 -0800)]
Merge pull request #169 from cgohlke/patch-2

Fix memoryview crashes when using msvc9 64 bit compiler

11 years agoFix memoryview crashes when using msvc9 64 bit compiler
cgohlke [Sat, 15 Dec 2012 00:25:00 +0000 (16:25 -0800)]
Fix memoryview crashes when using msvc9 64 bit compiler

11 years agomerge 0.17 branch into master
Stefan Behnel [Fri, 14 Dec 2012 14:22:04 +0000 (15:22 +0100)]
merge 0.17 branch into master

11 years agoAdded tag 0.17.3 for changeset b0faba6967e7
Stefan Behnel [Fri, 14 Dec 2012 14:02:21 +0000 (15:02 +0100)]
Added tag 0.17.3 for changeset b0faba6967e7

11 years agoprepare release of 0.17.3 0.17.3
Stefan Behnel [Fri, 14 Dec 2012 08:49:37 +0000 (09:49 +0100)]
prepare release of 0.17.3

11 years agomerge 0.17 branch into master
Stefan Behnel [Fri, 14 Dec 2012 08:47:03 +0000 (09:47 +0100)]
merge 0.17 branch into master

11 years agomerge 0.17 branch into master
Stefan Behnel [Fri, 14 Dec 2012 08:40:33 +0000 (09:40 +0100)]
merge 0.17 branch into master

11 years agoMerge pull request #167 from yarikoptic/master
Robert Bradshaw [Fri, 14 Dec 2012 07:27:54 +0000 (23:27 -0800)]
Merge pull request #167 from yarikoptic/master

ENH: test for af9cfeb fix of weakref objects

11 years agoMerge pull request #168 from bfroehle/unused_function_getbuffer
Robert Bradshaw [Mon, 10 Dec 2012 21:15:55 +0000 (13:15 -0800)]
Merge pull request #168 from bfroehle/unused_function_getbuffer

Fix warning: unused function '__pyx_pw_5numpy_7ndarray_1__getbuffer__'

11 years agoPrevent warning: unused function '__pyx_pw_5numpy_7ndarray_1__getbuffer__'
Bradley M. Froehle [Mon, 10 Dec 2012 20:00:10 +0000 (12:00 -0800)]
Prevent warning: unused function '__pyx_pw_5numpy_7ndarray_1__getbuffer__'

Originally fixed in 6cc6160, but a regression was later introduced in
519a19a.

11 years agoENH: test for af9cfeb5f94d9cd4f2989fc8e111c33208494ba4 fix of weakref objects
Yaroslav Halchenko [Mon, 10 Dec 2012 15:35:49 +0000 (10:35 -0500)]
ENH: test for af9cfeb5f94d9cd4f2989fc8e111c33208494ba4 fix of weakref objects

11 years agoPy3 test fix
Stefan Behnel [Sun, 9 Dec 2012 17:44:28 +0000 (18:44 +0100)]
Py3 test fix

--HG--
extra : transplant_source : %1CI-%A6a%F0%97%A1%AF9%22%C1%03%D7%0C%84%A3%DE%CBc

11 years agoPy3 test fix
Stefan Behnel [Sun, 9 Dec 2012 17:44:28 +0000 (18:44 +0100)]
Py3 test fix

11 years agosimplify and generalise comprehension/genexpr handling fix for if-const optimisation
Stefan Behnel [Sun, 9 Dec 2012 16:29:27 +0000 (17:29 +0100)]
simplify and generalise comprehension/genexpr handling fix for if-const optimisation

--HG--
extra : transplant_source : %A6%DC%F6%80lF%5B%82W%E2%86%F9%8A%B9%FF%0FR%D1%E2H

11 years agosimplify and generalise comprehension/genexpr handling fix for if-const optimisation
Stefan Behnel [Sun, 9 Dec 2012 16:29:27 +0000 (17:29 +0100)]
simplify and generalise comprehension/genexpr handling fix for if-const optimisation