platform/upstream/python-cython.git
10 years agodisable test in Py2.4
Stefan Behnel [Tue, 1 Oct 2013 07:02:38 +0000 (09:02 +0200)]
disable test in Py2.4

10 years agoignore UTF-8 BOMs at the beginning of source files
Stefan Behnel [Mon, 30 Sep 2013 20:50:08 +0000 (22:50 +0200)]
ignore UTF-8 BOMs at the beginning of source files

10 years agoPy2.4 fix
Stefan Behnel [Mon, 30 Sep 2013 17:38:33 +0000 (19:38 +0200)]
Py2.4 fix

10 years ago(try to) fix buffer overflow in test
Stefan Behnel [Sun, 29 Sep 2013 13:25:48 +0000 (15:25 +0200)]
(try to) fix buffer overflow in test

10 years agoclean up distutils argument handling in cythonize script, avoid unnecessary cwd chang...
Stefan Behnel [Sun, 29 Sep 2013 13:08:27 +0000 (15:08 +0200)]
clean up distutils argument handling in cythonize script, avoid unnecessary cwd changing, move intermediate compiler artifacts into temp directory and delete them afterwards

10 years agoadd test for cythonize excludes
Stefan Behnel [Sun, 29 Sep 2013 12:24:24 +0000 (14:24 +0200)]
add test for cythonize excludes

10 years agouse iglob instead of glob since we're iterating anyway
Stefan Behnel [Sun, 29 Sep 2013 12:17:01 +0000 (14:17 +0200)]
use iglob instead of glob since we're iterating anyway

10 years agofix typo
Stefan Behnel [Sun, 29 Sep 2013 11:45:24 +0000 (13:45 +0200)]
fix typo

10 years agofix abspath/relpath issues when excluding paths from cythonize() build
Stefan Behnel [Sun, 29 Sep 2013 11:44:25 +0000 (13:44 +0200)]
fix abspath/relpath issues when excluding paths from cythonize() build

10 years agoremove unused import
Stefan Behnel [Sun, 29 Sep 2013 11:07:10 +0000 (13:07 +0200)]
remove unused import

10 years agoSome math.h fixes, c99 isX macros.
Robert Bradshaw [Thu, 26 Sep 2013 02:53:58 +0000 (19:53 -0700)]
Some math.h fixes, c99 isX macros.

10 years agoMerge pull request #157 from dnmiller/master
Robert Bradshaw [Wed, 25 Sep 2013 06:02:13 +0000 (23:02 -0700)]
Merge pull request #157 from dnmiller/master

Allow relative path names for cython freeze.

10 years agoMerge pull request #246 from dalleyg/dalleyg-lvalue1
Robert Bradshaw [Wed, 25 Sep 2013 05:27:29 +0000 (22:27 -0700)]
Merge pull request #246 from dalleyg/dalleyg-lvalue1

Fixed IndexNode.is_lvalue

10 years agoMerge branch 'gdbout' of github.com:felix-salfelder/cython
Robert Bradshaw [Wed, 25 Sep 2013 05:06:16 +0000 (22:06 -0700)]
Merge branch 'gdbout' of github.com:felix-salfelder/cython

Conflicts:
Cython/Compiler/CmdLine.py

10 years agoMerge pull request #250 from larsmans/opaque-fpos
Robert Bradshaw [Wed, 25 Sep 2013 05:02:21 +0000 (22:02 -0700)]
Merge pull request #250 from larsmans/opaque-fpos

make fpos_t an opaque type

10 years agoMerge pull request #252 from larsmans/math-missing
Robert Bradshaw [Wed, 25 Sep 2013 05:01:28 +0000 (22:01 -0700)]
Merge pull request #252 from larsmans/math-missing

some missing math.h functions and macros in math.pxd

10 years agoMerge pull request #256 from kanzure/fix-libraries-example
Robert Bradshaw [Wed, 25 Sep 2013 04:58:23 +0000 (21:58 -0700)]
Merge pull request #256 from kanzure/fix-libraries-example

use -fPIC -shared when compiling "libraries" demo

10 years agoActually fix unsigned < 0 warning.
Robert Bradshaw [Sun, 22 Sep 2013 04:55:42 +0000 (21:55 -0700)]
Actually fix unsigned < 0 warning.

10 years agoClarify macro arguments.
Robert Bradshaw [Sun, 22 Sep 2013 04:06:02 +0000 (21:06 -0700)]
Clarify macro arguments.

10 years agoGet rid of "comparison of unsigned expression < 0 is always false" warning.
Robert Bradshaw [Sun, 22 Sep 2013 04:02:42 +0000 (21:02 -0700)]
Get rid of "comparison of unsigned expression < 0 is always false" warning.

10 years agoGet rid of "comparison between signed and unsigned" warning.
Robert Bradshaw [Sun, 22 Sep 2013 03:59:50 +0000 (20:59 -0700)]
Get rid of "comparison between signed and unsigned" warning.

10 years agoPy2.4 compile fix
Stefan Behnel [Sat, 21 Sep 2013 12:26:12 +0000 (14:26 +0200)]
Py2.4 compile fix

10 years agofix syntax
Stefan Behnel [Sat, 21 Sep 2013 11:47:07 +0000 (13:47 +0200)]
fix syntax

10 years agoPy2.4 fix
Stefan Behnel [Sat, 21 Sep 2013 11:35:31 +0000 (13:35 +0200)]
Py2.4 fix

10 years agoclean up test a little
Stefan Behnel [Sat, 14 Sep 2013 12:08:56 +0000 (14:08 +0200)]
clean up test a little

--HG--
extra : rebase_source : 7b763fbb0f2485056ec4d2f53a5ec76dc7be9203

10 years agoDon't warn on uninitialized setting of complex.real/imag
Robert Bradshaw [Thu, 19 Sep 2013 21:29:32 +0000 (14:29 -0700)]
Don't warn on uninitialized setting of complex.real/imag

10 years agoFix if XML_RESULTS is not set.
Robert Bradshaw [Thu, 19 Sep 2013 04:48:27 +0000 (21:48 -0700)]
Fix if XML_RESULTS is not set.

10 years agoXML results for hudson.
Robert Bradshaw [Thu, 19 Sep 2013 04:35:26 +0000 (21:35 -0700)]
XML results for hudson.

10 years agoMerge branch 'int-conversion'
Robert Bradshaw [Thu, 19 Sep 2013 03:59:26 +0000 (20:59 -0700)]
Merge branch 'int-conversion'

10 years agomerge 0.19.x branch into master
Stefan Behnel [Sat, 14 Sep 2013 09:31:16 +0000 (11:31 +0200)]
merge 0.19.x branch into master

10 years agoreduce overhead a bit when many string constants have the same cname
Stefan Behnel [Sat, 14 Sep 2013 08:04:31 +0000 (10:04 +0200)]
reduce overhead a bit when many string constants have the same cname

10 years agoremove unused parameter
Stefan Behnel [Sat, 14 Sep 2013 07:51:32 +0000 (09:51 +0200)]
remove unused parameter

10 years agofix cname uniquification for string constants
Stefan Behnel [Sat, 14 Sep 2013 07:22:51 +0000 (09:22 +0200)]
fix cname uniquification for string constants

10 years agoclean up some code
Stefan Behnel [Sat, 14 Sep 2013 06:33:35 +0000 (08:33 +0200)]
clean up some code

10 years agoSet correct baseclass for heap allocated type subclasses.
Robert Bradshaw [Thu, 12 Sep 2013 20:59:51 +0000 (13:59 -0700)]
Set correct baseclass for heap allocated type subclasses.

10 years agouse -fPIC -shared when compiling "libraries" demo
Bryan Bishop [Tue, 10 Sep 2013 01:03:18 +0000 (20:03 -0500)]
use -fPIC -shared when compiling "libraries" demo

This fixes the "libraries" demo's setup.py for building the call_mymath
extension.

10 years agoMerge pull request #254 from kanzure/fix-build-docs-typo
scoder [Sun, 8 Sep 2013 17:02:23 +0000 (10:02 -0700)]
Merge pull request #254 from kanzure/fix-build-docs-typo

Fix grammar/typo in build docs

10 years agofix grammar/typo in build docs
Bryan Bishop [Sun, 8 Sep 2013 16:11:45 +0000 (11:11 -0500)]
fix grammar/typo in build docs

There was a word missing.

10 years agoAdd no-cpp tag to numpy_math test.
Robert Bradshaw [Sat, 7 Sep 2013 20:45:22 +0000 (13:45 -0700)]
Add no-cpp tag to numpy_math test.

10 years agoNo-cpp tag.
Robert Bradshaw [Sat, 7 Sep 2013 20:43:58 +0000 (13:43 -0700)]
No-cpp tag.

10 years agoMerge branch 'numpy-math' of github.com:larsmans/cython
Robert Bradshaw [Sat, 7 Sep 2013 20:36:54 +0000 (13:36 -0700)]
Merge branch 'numpy-math' of github.com:larsmans/cython

10 years agoMerge pull request #49 from denik/7d7751ac5192c68d3501e48f663f2cae77a57990
Robert Bradshaw [Sat, 7 Sep 2013 19:41:19 +0000 (12:41 -0700)]
Merge pull request #49 from denik/7d7751ac5192c68d3501e48f663f2cae77a57990

Avoid dramatic changes in the resulting .c file when the input .pyx file changes only slightly.

10 years agopxd file for the NumPy core math library (npymath)
Lars Buitinck [Sat, 7 Sep 2013 11:30:29 +0000 (13:30 +0200)]
pxd file for the NumPy core math library (npymath)

10 years agominor doc clarification
Stefan Behnel [Thu, 5 Sep 2013 16:47:56 +0000 (18:47 +0200)]
minor doc clarification

10 years agosome missing math.h functions and macros in math.pxd
Lars Buitinck [Thu, 5 Sep 2013 08:48:37 +0000 (10:48 +0200)]
some missing math.h functions and macros in math.pxd

10 years agouse standard exclude patterns as overridable default in cystdlib.py
Stefan Behnel [Sun, 1 Sep 2013 21:16:28 +0000 (23:16 +0200)]
use standard exclude patterns as overridable default in cystdlib.py

10 years agoinclude type in annotation item text
Stefan Behnel [Sun, 1 Sep 2013 20:36:20 +0000 (22:36 +0200)]
include type in annotation item text

10 years agominor code cleanup
Stefan Behnel [Sun, 1 Sep 2013 20:33:59 +0000 (22:33 +0200)]
minor code cleanup

10 years agomake code blocks open on first click instead of second
Stefan Behnel [Sun, 1 Sep 2013 20:29:34 +0000 (22:29 +0200)]
make code blocks open on first click instead of second

10 years agofix some HTML issues in annotation file
Stefan Behnel [Sun, 1 Sep 2013 19:56:54 +0000 (21:56 +0200)]
fix some HTML issues in annotation file

10 years agoexclude two more modules from stclib compilation
Stefan Behnel [Sun, 1 Sep 2013 15:14:11 +0000 (17:14 +0200)]
exclude two more modules from stclib compilation

10 years agoformatting
Stefan Behnel [Sun, 1 Sep 2013 11:18:36 +0000 (13:18 +0200)]
formatting

10 years agoremove unused type variable
Stefan Behnel [Sun, 1 Sep 2013 09:07:01 +0000 (11:07 +0200)]
remove unused type variable

10 years agodisable pylint warning about unknown attributes - there are just too many of them...
Stefan Behnel [Sat, 31 Aug 2013 15:00:52 +0000 (17:00 +0200)]
disable pylint warning about unknown attributes - there are just too many of them on the tree nodes

10 years agochangelog
Stefan Behnel [Sat, 31 Aug 2013 14:39:55 +0000 (16:39 +0200)]
changelog

10 years agoallow explicitly excluding certain modules from the command line
Stefan Behnel [Sat, 31 Aug 2013 13:53:54 +0000 (15:53 +0200)]
allow explicitly excluding certain modules from the command line

10 years agoadd test for raw_input() renaming in Py3
Stefan Behnel [Sat, 31 Aug 2013 11:19:10 +0000 (13:19 +0200)]
add test for raw_input() renaming in Py3

10 years agoadd frozen importlib module to excluded modules in cystdlib.py
Stefan Behnel [Sat, 31 Aug 2013 10:59:19 +0000 (12:59 +0200)]
add frozen importlib module to excluded modules in cystdlib.py

10 years agoimprove Python compatibility during stdlib compilation
Stefan Behnel [Sat, 31 Aug 2013 10:41:35 +0000 (12:41 +0200)]
improve Python compatibility during stdlib compilation

--HG--
extra : rebase_source : 3925751f19150188e9c65f87aca4039a7d551b7a

10 years agoinclude raw_input() in list of builtins that change names in Py3
Stefan Behnel [Sat, 31 Aug 2013 10:36:58 +0000 (12:36 +0200)]
include raw_input() in list of builtins that change names in Py3

--HG--
extra : rebase_source : f2f904fd21c1807c0dc51f02fb9d460061862fda

10 years agoMerge pull request #251 from jpaalasm/patch-1
scoder [Fri, 30 Aug 2013 09:38:24 +0000 (02:38 -0700)]
Merge pull request #251 from jpaalasm/patch-1

Fix typo

10 years agoFix typo
Joonas Paalasmaa [Fri, 30 Aug 2013 09:32:33 +0000 (12:32 +0300)]
Fix typo

10 years agomark bytearray() and complex() as returning an instance of their type
Stefan Behnel [Fri, 30 Aug 2013 07:13:42 +0000 (09:13 +0200)]
mark bytearray() and complex() as returning an instance of their type

10 years agoPyPy doesn't define Py_OptimizeFlag => always set it to off to enable assertions
Stefan Behnel [Fri, 30 Aug 2013 07:03:15 +0000 (09:03 +0200)]
PyPy doesn't define Py_OptimizeFlag => always set it to off to enable assertions

10 years agoPy2.5 test fix
Stefan Behnel [Fri, 30 Aug 2013 04:35:11 +0000 (06:35 +0200)]
Py2.5 test fix

10 years agoadd test for __debug__ and asserts with Python's -O/-OO options
Stefan Behnel [Thu, 29 Aug 2013 19:55:05 +0000 (21:55 +0200)]
add test for __debug__ and asserts with Python's -O/-OO options

10 years agodisable 'assert' when Python runtime runs with -O/-OO
Stefan Behnel [Thu, 29 Aug 2013 19:54:17 +0000 (21:54 +0200)]
disable 'assert' when Python runtime runs with -O/-OO

10 years agooptimize __debug__ flag
Stefan Behnel [Thu, 29 Aug 2013 19:52:33 +0000 (21:52 +0200)]
optimize __debug__ flag

10 years agoPython 2.4 fix.
Robert Bradshaw [Tue, 27 Aug 2013 06:51:25 +0000 (23:51 -0700)]
Python 2.4 fix.

10 years agocompile Tempita to speed up startup time and template parsing
Stefan Behnel [Wed, 28 Aug 2013 19:48:11 +0000 (21:48 +0200)]
compile Tempita to speed up startup time and template parsing

--HG--
rename : Cython/Tempita/__init__.py => Cython/Tempita/_tempita.py

10 years agoremove unnecessary imports
Stefan Behnel [Wed, 28 Aug 2013 19:26:48 +0000 (21:26 +0200)]
remove unnecessary imports

10 years agochangelog
Stefan Behnel [Wed, 28 Aug 2013 19:25:50 +0000 (21:25 +0200)]
changelog

10 years agoMerge branch 'common-types' into pristine
Robert Bradshaw [Tue, 27 Aug 2013 03:33:55 +0000 (20:33 -0700)]
Merge branch 'common-types' into pristine

10 years agoFix some integer conversion tests.
Robert Bradshaw [Mon, 26 Aug 2013 17:48:32 +0000 (10:48 -0700)]
Fix some integer conversion tests.

10 years agoadd -3 option to cythonize script to make it easier to compile in Py3 mode
Stefan Behnel [Sun, 25 Aug 2013 18:23:53 +0000 (20:23 +0200)]
add -3 option to cythonize script to make it easier to compile in Py3 mode

10 years agoadd --quiet and --force options to cythonize script
Stefan Behnel [Sun, 25 Aug 2013 18:14:03 +0000 (20:14 +0200)]
add --quiet and --force options to cythonize script

10 years agoConditionaly create int conversion functions.
Robert Bradshaw [Sun, 25 Aug 2013 04:16:21 +0000 (21:16 -0700)]
Conditionaly create int conversion functions.

10 years agoRemove old type conversion code.
Robert Bradshaw [Sun, 25 Aug 2013 04:05:10 +0000 (21:05 -0700)]
Remove old type conversion code.

10 years agoConversion for extern int types.
Robert Bradshaw [Sun, 25 Aug 2013 03:52:37 +0000 (20:52 -0700)]
Conversion for extern int types.

10 years agoConversion for very long ints.
Robert Bradshaw [Sun, 25 Aug 2013 03:35:43 +0000 (20:35 -0700)]
Conversion for very long ints.

10 years agoCIntToPy functions.
Robert Bradshaw [Sat, 24 Aug 2013 20:36:47 +0000 (13:36 -0700)]
CIntToPy functions.

10 years agoMore int type conversion simplification.
Robert Bradshaw [Sat, 24 Aug 2013 20:17:45 +0000 (13:17 -0700)]
More int type conversion simplification.

10 years agoRefactor conversion utility code.
Robert Bradshaw [Sat, 24 Aug 2013 19:57:42 +0000 (12:57 -0700)]
Refactor conversion utility code.

10 years agofix distutils build
Stefan Behnel [Sat, 24 Aug 2013 14:14:12 +0000 (16:14 +0200)]
fix distutils build

10 years agoupdate and clean up cystdlib.py script
Stefan Behnel [Sat, 24 Aug 2013 06:09:39 +0000 (08:09 +0200)]
update and clean up cystdlib.py script

10 years agoadd --lenient option also to normal command line
Stefan Behnel [Fri, 23 Aug 2013 21:02:12 +0000 (23:02 +0200)]
add --lenient option also to normal command line

10 years agomake fpos_t an opaque type
Lars Buitinck [Fri, 23 Aug 2013 15:29:55 +0000 (17:29 +0200)]
make fpos_t an opaque type

According to the C11 standard, ยง7.21.1, fpos_t

    is a complete object type other than an array type

but there's no guarantee that its an integer type.

10 years agoremove redundant qualifier from method name
Stefan Behnel [Wed, 21 Aug 2013 19:13:17 +0000 (21:13 +0200)]
remove redundant qualifier from method name

10 years agosimplify and extend in/not-in and is/is-not optimisation, add test
Stefan Behnel [Wed, 21 Aug 2013 18:53:17 +0000 (20:53 +0200)]
simplify and extend in/not-in and is/is-not optimisation, add test

10 years agosimplify generated code by converting 'not X in Y' and 'not X is Y' into the equivale...
Stefan Behnel [Wed, 21 Aug 2013 13:51:26 +0000 (15:51 +0200)]
simplify generated code by converting 'not X in Y' and 'not X is Y' into the equivalent not-in and is-not operators

10 years agofix directive parsing in cythonize script
Stefan Behnel [Tue, 20 Aug 2013 07:14:54 +0000 (09:14 +0200)]
fix directive parsing in cythonize script

10 years agoCorrect globals for shared function types.
Robert Bradshaw [Thu, 15 Aug 2013 06:44:40 +0000 (23:44 -0700)]
Correct globals for shared function types.

10 years agoUse PyImport_GetModuleDict() for common utility types.
Robert Bradshaw [Tue, 13 Aug 2013 16:03:37 +0000 (09:03 -0700)]
Use PyImport_GetModuleDict() for common utility types.

10 years agominor doc fixes
Stefan Behnel [Tue, 13 Aug 2013 08:27:01 +0000 (10:27 +0200)]
minor doc fixes

--HG--
extra : transplant_source : %9E%DF%DFQ%18h%9D%1Ax%FAV%1F%28%E8%86%E4%91%21%EF%26

10 years agominor doc fixes
Stefan Behnel [Tue, 13 Aug 2013 08:27:01 +0000 (10:27 +0200)]
minor doc fixes

10 years agoCommon utility types test.
Robert Bradshaw [Tue, 13 Aug 2013 07:08:02 +0000 (00:08 -0700)]
Common utility types test.

10 years agoPy3 fixes for shared types.
Robert Bradshaw [Tue, 13 Aug 2013 07:07:36 +0000 (00:07 -0700)]
Py3 fixes for shared types.

10 years agoMerge branch 'master' into common-types
Robert Bradshaw [Tue, 13 Aug 2013 05:56:59 +0000 (22:56 -0700)]
Merge branch 'master' into common-types

10 years agoUse shared module for more Cython types.
Robert Bradshaw [Tue, 13 Aug 2013 05:37:17 +0000 (22:37 -0700)]
Use shared module for more Cython types.

10 years agoCleanup type sharing.
Robert Bradshaw [Tue, 13 Aug 2013 05:21:45 +0000 (22:21 -0700)]
Cleanup type sharing.