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

11 years agodelete more redundant code when encountering constant bool conditions inside of gener...
Stefan Behnel [Sun, 9 Dec 2012 15:30:34 +0000 (16:30 +0100)]
delete more redundant code when encountering constant bool conditions inside of generator expressions

--HG--
extra : transplant_source : ac%24%C9%A2%BBI%5B%E9/%3A%0F%15%FCE%DAQ%C1%E5%81

11 years agochangelog
Stefan Behnel [Fri, 14 Dec 2012 07:38:23 +0000 (08:38 +0100)]
changelog

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.

--HG--
extra : transplant_source : e%B0%AA%A0O%D0%06%1F%90%17%9C%0B%B3KN%84%17%E5%19%81

11 years agofix crash bug during final cleanup for cimported base types
Stefan Behnel [Fri, 14 Dec 2012 07:08:33 +0000 (08:08 +0100)]
fix crash bug during final cleanup for cimported base types

11 years agodelete more redundant code when encountering constant bool conditions inside of gener...
Stefan Behnel [Sun, 9 Dec 2012 15:30:34 +0000 (16:30 +0100)]
delete more redundant code when encountering constant bool conditions inside of generator expressions

11 years agomerged 0.17 branch into master
Stefan Behnel [Sun, 9 Dec 2012 14:20:41 +0000 (15:20 +0100)]
merged 0.17 branch into master

11 years agochangelog fix
Stefan Behnel [Sun, 9 Dec 2012 13:58:08 +0000 (14:58 +0100)]
changelog fix

11 years agoraise overflow error in Py3.3+ when non-BMP Unicode characters are coerced into a...
Stefan Behnel [Sun, 9 Dec 2012 12:22:19 +0000 (13:22 +0100)]
raise overflow error in Py3.3+ when non-BMP Unicode characters are coerced into a short Py_UNICODE value

11 years agomove some helper code into external utility code files
Stefan Behnel [Sun, 9 Dec 2012 11:04:59 +0000 (12:04 +0100)]
move some helper code into external utility code files

11 years agomoved Py_UCS4/Py_UNICODE type conversion helper functions to utility code file
Stefan Behnel [Sun, 9 Dec 2012 10:35:02 +0000 (11:35 +0100)]
moved Py_UCS4/Py_UNICODE type conversion helper functions to utility code file

11 years agoclean up some code
Stefan Behnel [Sun, 9 Dec 2012 10:09:02 +0000 (11:09 +0100)]
clean up some code

11 years agoclean up some code
Stefan Behnel [Sun, 9 Dec 2012 07:46:33 +0000 (08:46 +0100)]
clean up some code

11 years agoRemove obsolete, unused C++ test.
Robert Bradshaw [Fri, 7 Dec 2012 19:04:49 +0000 (11:04 -0800)]
Remove obsolete, unused C++ test.

11 years agomerge
Stefan Behnel [Fri, 7 Dec 2012 07:05:22 +0000 (08:05 +0100)]
merge

11 years agoMerge pull request #166 from yarikoptic/master
Robert Bradshaw [Thu, 6 Dec 2012 06:49:47 +0000 (22:49 -0800)]
Merge pull request #166 from yarikoptic/master

scripts with shebangs <-> executable + uniform use of #!/usr/bin/env python

11 years agoscripts with shebangs <-> executable + uniform use of #!/usr/bin/env python
Yaroslav Halchenko [Thu, 6 Dec 2012 03:20:30 +0000 (22:20 -0500)]
scripts with shebangs <-> executable + uniform use of #!/usr/bin/env python

11 years agomerge
Stefan Behnel [Wed, 5 Dec 2012 21:12:33 +0000 (22:12 +0100)]
merge

11 years agoMerge pull request #165 from yarikoptic/master
Mark Florisson [Wed, 5 Dec 2012 17:10:50 +0000 (09:10 -0800)]
Merge pull request #165 from yarikoptic/master

fix analysis of entry to be a weakref (typo introduced in d96dfd)

11 years agofix analysis of entry to be a weakref (typo introduced in d96dfd)
Yaroslav Halchenko [Wed, 5 Dec 2012 16:51:18 +0000 (11:51 -0500)]
fix analysis of entry to be a weakref (typo introduced in d96dfd)

Originally reported in Debian http://bugs.debian.org/cgi-bin/bugreport.cgi\?bug\=692313
Lead to crash with python-dbg:

  python-dbg: ../Modules/gcmodule.c:366: visit_decref: Assertion 'gc->gc.gc_refs != 0' failed

11 years agoOmit setting docstring for __getbuffer__/__releasebuffer__
Mark Florisson [Tue, 4 Dec 2012 22:10:46 +0000 (22:10 +0000)]
Omit setting docstring for __getbuffer__/__releasebuffer__

11 years agodisable failing test
Stefan Behnel [Sun, 2 Dec 2012 19:15:50 +0000 (20:15 +0100)]
disable failing test

11 years agoadd simple test case that tends to be more inefficient than necessary
Stefan Behnel [Sun, 2 Dec 2012 19:05:34 +0000 (20:05 +0100)]
add simple test case that tends to be more inefficient than necessary

11 years agominor test cleanup
Stefan Behnel [Sun, 2 Dec 2012 10:09:14 +0000 (11:09 +0100)]
minor test cleanup

11 years agoadd test case for a C compiler warning due to a bad extension type cast on final...
Stefan Behnel [Fri, 30 Nov 2012 12:05:03 +0000 (13:05 +0100)]
add test case for a C compiler warning due to a bad extension type cast on final method calls

11 years agoadd test case
Stefan Behnel [Thu, 29 Nov 2012 21:41:02 +0000 (22:41 +0100)]
add test case

11 years agowork around compiler crash on float().conjugate() for a trivial case by optimising...
Stefan Behnel [Thu, 29 Nov 2012 21:37:31 +0000 (22:37 +0100)]
work around compiler crash on float().conjugate() for a trivial case by optimising it away

11 years agoMerge pull request #163 from joonro/patch-5
Robert Bradshaw [Thu, 29 Nov 2012 18:26:29 +0000 (10:26 -0800)]
Merge pull request #163 from joonro/patch-5

Minor cleanup of a couple of examples

11 years agoMinor cleanup of a couple of examples
Joon Ro [Thu, 29 Nov 2012 17:14:49 +0000 (11:14 -0600)]
Minor cleanup of a couple of examples

- fixed wrong references (The file on the left (right) -> actual file name)
- divided an example snippet of three files into separate files

11 years agomerge 0.17 branch into master
Stefan Behnel [Wed, 28 Nov 2012 20:27:18 +0000 (21:27 +0100)]
merge 0.17 branch into master

11 years agofix 'cimport cython' in string code fragments
Stefan Behnel [Wed, 28 Nov 2012 20:15:28 +0000 (21:15 +0100)]
fix 'cimport cython' in string code fragments

11 years agoMerge pull request #162 from joonro/patch-4
Robert Bradshaw [Wed, 28 Nov 2012 18:12:51 +0000 (10:12 -0800)]
Merge pull request #162 from joonro/patch-4

Fixed indentation of a code example

11 years agoFixed indentation of a code example
Joon Ro [Wed, 28 Nov 2012 17:16:50 +0000 (11:16 -0600)]
Fixed indentation of a code example

Fixed a code example which had been indented with 2 spaces.

11 years agoMerge pull request #161 from joonro/patch-3
Robert Bradshaw [Wed, 28 Nov 2012 05:30:03 +0000 (21:30 -0800)]
Merge pull request #161 from joonro/patch-3

changed file order in Sharing C Functions example

11 years agochanged file order in Sharing C Functions example
Joon Ro [Wed, 28 Nov 2012 04:37:57 +0000 (22:37 -0600)]
changed file order in Sharing C Functions example

This order looks more logical, easier to read.

11 years agoMerge branch 'bugs'
Robert Bradshaw [Tue, 27 Nov 2012 08:13:29 +0000 (00:13 -0800)]
Merge branch 'bugs'

11 years agoBetter exception reporting for non-child visits.
Robert Bradshaw [Tue, 27 Nov 2012 08:12:41 +0000 (00:12 -0800)]
Better exception reporting for non-child visits.

11 years agoFix compiler crash.
Robert Bradshaw [Tue, 27 Nov 2012 07:54:50 +0000 (23:54 -0800)]
Fix compiler crash.

11 years agomerged 0.17 branch into master
Stefan Behnel [Tue, 27 Nov 2012 06:49:42 +0000 (07:49 +0100)]
merged 0.17 branch into master

11 years agochangelog
Stefan Behnel [Tue, 27 Nov 2012 06:41:56 +0000 (07:41 +0100)]
changelog

11 years agokeep longness when folding negative integer constants
Stefan Behnel [Tue, 27 Nov 2012 06:37:32 +0000 (07:37 +0100)]
keep longness when folding negative integer constants

11 years agokeep longness when folding negative integer constants
Stefan Behnel [Tue, 27 Nov 2012 06:37:32 +0000 (07:37 +0100)]
keep longness when folding negative integer constants

--HG--
extra : transplant_source : %CC%EC%23%19%11%1A%22%FB%5C-%18%AD%0D%FC%24L%BD%81%91%FF

11 years agofix PrintTree() debug helper for compiled Cython
Stefan Behnel [Tue, 27 Nov 2012 06:07:07 +0000 (07:07 +0100)]
fix PrintTree() debug helper for compiled Cython

11 years agoMerge pull request #153 from joonro/patch-2
Mark Florisson [Sat, 24 Nov 2012 19:16:29 +0000 (11:16 -0800)]
Merge pull request #153 from joonro/patch-2

Update cy break examples

11 years agoMerge pull request #158 from juliantaylor/plat-specific
Robert Bradshaw [Thu, 22 Nov 2012 01:29:52 +0000 (17:29 -0800)]
Merge pull request #158 from juliantaylor/plat-specific

add platform specific include directory to compile line

11 years agofix accidental line duplication in changelog
Stefan Behnel [Wed, 21 Nov 2012 05:11:09 +0000 (06:11 +0100)]
fix accidental line duplication in changelog

11 years agoadded 0.18 section to changelog
Stefan Behnel [Tue, 20 Nov 2012 21:22:11 +0000 (22:22 +0100)]
added 0.18 section to changelog

11 years agomerged 0.17 branch into master
Stefan Behnel [Tue, 20 Nov 2012 21:21:13 +0000 (22:21 +0100)]
merged 0.17 branch into master

11 years agoAdded tag 0.17.2 for changeset 275fb550c1d8
Stefan Behnel [Tue, 20 Nov 2012 20:37:03 +0000 (21:37 +0100)]
Added tag 0.17.2 for changeset 275fb550c1d8

11 years agoprepare release of 0.17.2 0.17.2
Stefan Behnel [Tue, 20 Nov 2012 20:16:58 +0000 (21:16 +0100)]
prepare release of 0.17.2

11 years agoadd platform specific include directory to compile line
Julian Taylor [Sun, 18 Nov 2012 12:44:55 +0000 (13:44 +0100)]
add platform specific include directory to compile line

beginning with python3.3 it is different than the general include
directory on debian based systems

--HG--
extra : transplant_source : V%7D%E3%8D%7D%2A%B5%10%D0/D%95%17n%D3z%3Bt2%27

11 years agoadd platform specific include directory to compile line
Julian Taylor [Sun, 18 Nov 2012 12:44:55 +0000 (13:44 +0100)]
add platform specific include directory to compile line

beginning with python3.3 it is different than the general include
directory on debian based systems

11 years agoadd test for temp type adaptation from C array to C pointer type
Stefan Behnel [Sun, 18 Nov 2012 06:16:45 +0000 (07:16 +0100)]
add test for temp type adaptation from C array to C pointer type

11 years agoadd test for temp type adaptation from C array to C pointer type
Stefan Behnel [Sun, 18 Nov 2012 06:16:45 +0000 (07:16 +0100)]
add test for temp type adaptation from C array to C pointer type

--HG--
extra : transplant_source : %08%F6%88rE%C7%F5%CD.%9Ad%244m%0Cw%8C%25g%C0

11 years agouse type.as_argument_type() when adapting temp types, include C function types in...
Stefan Behnel [Sun, 18 Nov 2012 05:58:45 +0000 (06:58 +0100)]
use type.as_argument_type() when adapting temp types, include C function types in special cases

11 years agouse type.as_argument_type() when adapting temp types, include C function types in...
Stefan Behnel [Sun, 18 Nov 2012 05:58:45 +0000 (06:58 +0100)]
use type.as_argument_type() when adapting temp types, include C function types in special cases

--HG--
extra : transplant_source : %01%22lN%B0%1D%B9h%AC%2B4%E1F%7FQ%15%E6%F3%F1%9F

11 years agobacked out temp type adaptation changes to use type.as_argument_type() instead
Stefan Behnel [Sun, 18 Nov 2012 05:57:58 +0000 (06:57 +0100)]
backed out temp type adaptation changes to use type.as_argument_type() instead

11 years agorestrict enforced temp coercion in normal assignments to Python objects
Stefan Behnel [Sat, 17 Nov 2012 13:33:33 +0000 (14:33 +0100)]
restrict enforced temp coercion in normal assignments to Python objects

--HG--
extra : transplant_source : 81Y%F6%E5%B8%BF%F4%D9%97%85%93%16%9B%A5E%B2%FD%AE%5C

11 years agorestrict enforced temp coercion in normal assignments to Python objects
Stefan Behnel [Sat, 17 Nov 2012 13:33:33 +0000 (14:33 +0100)]
restrict enforced temp coercion in normal assignments to Python objects

11 years agowhen creating temps for C arrays and C functions, use to their respective pointer...
Stefan Behnel [Sat, 17 Nov 2012 13:10:45 +0000 (14:10 +0100)]
when creating temps for C arrays and C functions, use to their respective pointer type

11 years agominor comment fix
Stefan Behnel [Sat, 17 Nov 2012 11:35:20 +0000 (12:35 +0100)]
minor comment fix

--HG--
extra : transplant_source : %A1/-i%8Cd%C3%DBCy%19%7C%19%87%B9%C5%60%B9P%F5

11 years agominor comment fix
Stefan Behnel [Sat, 17 Nov 2012 11:35:20 +0000 (12:35 +0100)]
minor comment fix