platform/upstream/python-cython.git
10 years agosupport 'bytearray' in the same way as 'bytes', starting with Py2.6
Stefan Behnel [Sat, 2 Nov 2013 18:19:55 +0000 (19:19 +0100)]
support 'bytearray' in the same way as 'bytes', starting with Py2.6

10 years agominor readability fix
Stefan Behnel [Sat, 2 Nov 2013 17:53:34 +0000 (18:53 +0100)]
minor readability fix

10 years agofix comment
Stefan Behnel [Sat, 2 Nov 2013 13:37:23 +0000 (14:37 +0100)]
fix comment

10 years agospelling
Robert Bradshaw [Sat, 2 Nov 2013 05:44:47 +0000 (22:44 -0700)]
spelling

10 years agoGet rid of 'virtual methods without virtual destructor' warning.
Robert Bradshaw [Sat, 2 Nov 2013 03:43:36 +0000 (20:43 -0700)]
Get rid of 'virtual methods without virtual destructor' warning.

10 years agoClear tp_print for cdef classes.
Robert Bradshaw [Sat, 2 Nov 2013 03:31:38 +0000 (20:31 -0700)]
Clear tp_print for cdef classes.

10 years agoFix executable bits.
Robert Bradshaw [Fri, 1 Nov 2013 16:05:24 +0000 (09:05 -0700)]
Fix executable bits.

10 years agomerge 0.19.x branch into master
Stefan Behnel [Fri, 1 Nov 2013 10:33:53 +0000 (11:33 +0100)]
merge 0.19.x branch into master

10 years agofix ref-leak during Py2-style class instantiation
Stefan Behnel [Fri, 1 Nov 2013 10:30:45 +0000 (11:30 +0100)]
fix ref-leak during Py2-style class instantiation

10 years agoMerge pull request #58 from drafnel/master
Robert Bradshaw [Fri, 25 Oct 2013 04:40:30 +0000 (21:40 -0700)]
Merge pull request #58 from drafnel/master

Makefile: rework repo creation target

10 years agoMerge pull request #262 from msabramo/cygdb_logging
Robert Bradshaw [Fri, 25 Oct 2013 04:36:00 +0000 (21:36 -0700)]
Merge pull request #262 from msabramo/cygdb_logging

Cython/Debugger/Cygdb.py: Add debug logging with `logging` module

10 years agoDisable broken cimport alias test by defualt.
Robert Bradshaw [Fri, 25 Oct 2013 04:34:10 +0000 (21:34 -0700)]
Disable broken cimport alias test by defualt.

10 years agoMerge pull request #249 from strohel/cimport-alias-subclass-testcase
Robert Bradshaw [Fri, 25 Oct 2013 04:31:33 +0000 (21:31 -0700)]
Merge pull request #249 from strohel/cimport-alias-subclass-testcase

Add testcase for cimport+alias+subclass bug

10 years agoMerge pull request #263 from msabramo/cygdb_source_cygdbinit
Robert Bradshaw [Fri, 25 Oct 2013 04:29:21 +0000 (21:29 -0700)]
Merge pull request #263 from msabramo/cygdb_source_cygdbinit

Cython/Debugger/Cygdb.py: Source .cygdbinit file

10 years agoMerge pull request #265 from msabramo/0.19.x_bdist_setuptools
Robert Bradshaw [Fri, 25 Oct 2013 04:26:16 +0000 (21:26 -0700)]
Merge pull request #265 from msabramo/0.19.x_bdist_setuptools

setup.py: [0.19.x] Use setuptools when invoked with bdist_{egg,wheel}.

10 years agoremove unused code from Lexicon.py
Stefan Behnel [Wed, 23 Oct 2013 16:59:49 +0000 (18:59 +0200)]
remove unused code from Lexicon.py

10 years agosupport 'rb' string prefix in addition to 'br' (Py3 allows it)
Stefan Behnel [Wed, 23 Oct 2013 16:58:46 +0000 (18:58 +0200)]
support 'rb' string prefix in addition to 'br' (Py3 allows it)

10 years agoMerge branch 'master' of github.com:cython/cython
Robert Bradshaw [Wed, 23 Oct 2013 03:48:59 +0000 (20:48 -0700)]
Merge branch 'master' of github.com:cython/cython

10 years agoMerge pull request #266 from PythonCHB/master
Robert Bradshaw [Wed, 23 Oct 2013 03:19:44 +0000 (20:19 -0700)]
Merge pull request #266 from PythonCHB/master

added __version__ to the cython namespace

10 years agosetup.py: Use setuptools when invoked with bdist_{egg,wheel}.
Marc Abramowitz [Tue, 22 Oct 2013 18:07:51 +0000 (11:07 -0700)]
setup.py: Use setuptools when invoked with bdist_{egg,wheel}.

This makes it easier to build eggs and wheels of 0.19.x releases; the
master branch already uses setuptools.

10 years agoMerge branch 'master' of github.com:cython/cython
Robert Bradshaw [Tue, 22 Oct 2013 06:57:20 +0000 (23:57 -0700)]
Merge branch 'master' of github.com:cython/cython

10 years agofix cdef signature
Robert Bradshaw [Tue, 22 Oct 2013 06:55:55 +0000 (23:55 -0700)]
fix cdef signature

10 years agoadded __version__ to the cython namespace
Christopher H.Barker, PhD [Mon, 21 Oct 2013 21:08:07 +0000 (14:08 -0700)]
added __version__ to the cython namespace

10 years agoMerge pull request #259 from msabramo/cygdb-tweak-args
Robert Bradshaw [Mon, 21 Oct 2013 19:11:11 +0000 (12:11 -0700)]
Merge pull request #259 from msabramo/cygdb-tweak-args

Fix cygdb argument parsing

10 years agodisable unnecessary PyType_IS_GC() check in PyPy (not supported)
Stefan Behnel [Wed, 16 Oct 2013 04:54:27 +0000 (06:54 +0200)]
disable unnecessary PyType_IS_GC() check in PyPy (not supported)

10 years agosimplify C code for setting up public enums
Stefan Behnel [Sun, 13 Oct 2013 18:57:23 +0000 (20:57 +0200)]
simplify C code for setting up public enums

10 years agoavoid unnecessary overhead when setting Python class docstrings
Stefan Behnel [Sun, 13 Oct 2013 18:44:49 +0000 (20:44 +0200)]
avoid unnecessary overhead when setting Python class docstrings

10 years agoclear global reference to module dict in module cleanup code
Stefan Behnel [Sun, 13 Oct 2013 13:33:25 +0000 (15:33 +0200)]
clear global reference to module dict in module cleanup code

10 years agodoc cleanup and some Sphinx fixes
Stefan Behnel [Sun, 13 Oct 2013 12:21:24 +0000 (14:21 +0200)]
doc cleanup and some Sphinx fixes

10 years agoCython/Debugger/Cygdb.py: Source .cygdbinit file
Marc Abramowitz [Sun, 13 Oct 2013 10:40:16 +0000 (03:40 -0700)]
Cython/Debugger/Cygdb.py: Source .cygdbinit file

10 years agoCython/Debugger/Cygdb.py: Add debug logging with `logging` module
Marc Abramowitz [Sat, 12 Oct 2013 17:17:35 +0000 (10:17 -0700)]
Cython/Debugger/Cygdb.py: Add debug logging with `logging` module

10 years agomerge 0.19.x branch into master
Stefan Behnel [Sun, 13 Oct 2013 07:56:33 +0000 (09:56 +0200)]
merge 0.19.x branch into master

10 years agoprepare release of 0.19.2 0.19.2
Stefan Behnel [Sun, 13 Oct 2013 07:54:48 +0000 (09:54 +0200)]
prepare release of 0.19.2

10 years agoCygdb.py: Add "--" to cygdb usage string before gdb args
Marc Abramowitz [Sun, 13 Oct 2013 00:54:06 +0000 (17:54 -0700)]
Cygdb.py: Add "--" to cygdb usage string before gdb args

The "--" needs to be put before any gdb args so that optparse doesn't think that they're cygdb args.

10 years agoextend .hgignore
Stefan Behnel [Sat, 12 Oct 2013 18:04:55 +0000 (20:04 +0200)]
extend .hgignore

10 years agoMerge pull request #260 from msabramo/gitignore_egg_stuff
scoder [Sat, 12 Oct 2013 18:03:35 +0000 (11:03 -0700)]
Merge pull request #260 from msabramo/gitignore_egg_stuff

.gitignore: Ignore *.egg and *.egg-info

10 years ago.gitignore: Ignore *.egg and *.egg-info
Marc Abramowitz [Sat, 12 Oct 2013 16:05:55 +0000 (09:05 -0700)]
.gitignore: Ignore *.egg and *.egg-info

10 years agofix warnings in refnanny module
Stefan Behnel [Sat, 12 Oct 2013 14:17:29 +0000 (16:17 +0200)]
fix warnings in refnanny module

10 years agoFix cygdb argument parsing
Marc Abramowitz [Sat, 12 Oct 2013 11:03:38 +0000 (04:03 -0700)]
Fix cygdb argument parsing

10 years agomerge 0.19.x branch into master
Stefan Behnel [Sat, 12 Oct 2013 08:19:18 +0000 (10:19 +0200)]
merge 0.19.x branch into master

10 years agofix typos
Stefan Behnel [Sat, 12 Oct 2013 08:19:06 +0000 (10:19 +0200)]
fix typos

10 years agomerge 0.19.x branch into master
Stefan Behnel [Sat, 12 Oct 2013 08:10:37 +0000 (10:10 +0200)]
merge 0.19.x branch into master

10 years agoimprove error handling in malloc tutorial example
Stefan Behnel [Sat, 12 Oct 2013 08:10:22 +0000 (10:10 +0200)]
improve error handling in malloc tutorial example

10 years agomerge 0.19.x branch into master
Stefan Behnel [Sat, 12 Oct 2013 07:52:12 +0000 (09:52 +0200)]
merge 0.19.x branch into master

10 years agoadd minimal support for new tp_finalize type slot in Py3.4 to prevent C compiler...
Stefan Behnel [Sat, 12 Oct 2013 07:48:41 +0000 (09:48 +0200)]
add minimal support for new tp_finalize type slot in Py3.4 to prevent C compiler warnings

10 years agosome more cleanup in array.pxd
Stefan Behnel [Sat, 12 Oct 2013 07:19:19 +0000 (09:19 +0200)]
some more cleanup in array.pxd

10 years agoclean up getbuffer code in array.pxd
Stefan Behnel [Sat, 12 Oct 2013 05:46:34 +0000 (07:46 +0200)]
clean up getbuffer code in array.pxd

10 years agominor cleanup
Stefan Behnel [Sat, 12 Oct 2013 05:14:14 +0000 (07:14 +0200)]
minor cleanup

10 years agomerge 0.19.x branch into master
Stefan Behnel [Sat, 12 Oct 2013 05:09:07 +0000 (07:09 +0200)]
merge 0.19.x branch into master

10 years agofix some more exception handling in array.pxd
Stefan Behnel [Sat, 12 Oct 2013 05:00:50 +0000 (07:00 +0200)]
fix some more exception handling in array.pxd

10 years agoMerge pull request #258 from zyv/fix_array_extend
scoder [Sat, 12 Oct 2013 04:52:48 +0000 (21:52 -0700)]
Merge pull request #258 from zyv/fix_array_extend

Multiple fixes to array.extend()

10 years agomerge branch 0.19.x into master
Stefan Behnel [Fri, 11 Oct 2013 16:03:18 +0000 (18:03 +0200)]
merge branch 0.19.x into master

10 years agomention PyMem_*() C-API functions in memory allocation tutorial
Stefan Behnel [Fri, 11 Oct 2013 16:02:45 +0000 (18:02 +0200)]
mention PyMem_*() C-API functions in memory allocation tutorial

10 years agoreduce Unicode iteration over Latin-1 literals to bytes iteration
Stefan Behnel [Fri, 11 Oct 2013 12:36:04 +0000 (14:36 +0200)]
reduce Unicode iteration over Latin-1 literals to bytes iteration

10 years agomove misplaced PyObject_Format() C-API declaration to right .pxd file
Stefan Behnel [Fri, 11 Oct 2013 09:09:39 +0000 (11:09 +0200)]
move misplaced PyObject_Format() C-API declaration to right .pxd file

10 years agofix declaration of PyBuffer_FillInfo()
Stefan Behnel [Thu, 10 Oct 2013 16:55:28 +0000 (18:55 +0200)]
fix declaration of PyBuffer_FillInfo()

10 years agoMultiple fixes to array.extend()
Yury V. Zaytsev [Tue, 8 Oct 2013 08:36:17 +0000 (10:36 +0200)]
Multiple fixes to array.extend()

    * Fix self / other typecode compatibility check and add test

    * In CPython, PyErr_BadArgument() C-API function always raises an
      exception and returns zero

    * It is needed to add the `except -2` clause, so that the exception
      raised by PyErr_BadArgument() is not ignored

    * Additionaly, the `return -1` statement in array.extend() will have
      no effect, and hence is misleading, so it needs to be removed

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
10 years agoMultiple fixes to array.extend()
Yury V. Zaytsev [Tue, 8 Oct 2013 08:36:17 +0000 (10:36 +0200)]
Multiple fixes to array.extend()

    * Fix self / other typecode compatibility check and add test

    * In CPython, PyErr_BadArgument() C-API function always raises an
      exception and returns zero

    * It is needed to add the `except -2` clause, so that the exception
      raised by PyErr_BadArgument() is not ignored

    * Additionaly, the `return -1` statement in array.extend() will have
      no effect, and hence is misleading, so it needs to be removed

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
--HG--
extra : transplant_source : e%BE%0A8%0D%B6%A4A%B4%9F%98bZ%ED%C5%CD%D9%AD%E0%7C

10 years agochangelog
Stefan Behnel [Fri, 11 Oct 2013 18:39:08 +0000 (20:39 +0200)]
changelog

10 years agoprepare release of 0.19.2
Stefan Behnel [Fri, 11 Oct 2013 16:04:06 +0000 (18:04 +0200)]
prepare release of 0.19.2

10 years agominor changelog fix
Stefan Behnel [Sun, 6 Oct 2013 12:36:57 +0000 (14:36 +0200)]
minor changelog fix

10 years agoexplain basestring type in string tutorial
Stefan Behnel [Sun, 6 Oct 2013 12:29:40 +0000 (14:29 +0200)]
explain basestring type in string tutorial

10 years agoprevent assignment from basestring->bytes, provide better error messages, extend...
Stefan Behnel [Sun, 6 Oct 2013 11:52:03 +0000 (13:52 +0200)]
prevent assignment from basestring->bytes, provide better error messages, extend string assignment failures test

10 years agochangelog
Stefan Behnel [Sun, 6 Oct 2013 11:26:26 +0000 (13:26 +0200)]
changelog

10 years agoremove incorrect test assumption
Stefan Behnel [Sun, 6 Oct 2013 11:20:55 +0000 (13:20 +0200)]
remove incorrect test assumption

10 years agodisallow assignment from bytes to basestring (only allow str/unicode)
Stefan Behnel [Sun, 6 Oct 2013 10:23:35 +0000 (12:23 +0200)]
disallow assignment from bytes to basestring (only allow str/unicode)

10 years agoreduce number of distinct error format strings a bit
Stefan Behnel [Sun, 6 Oct 2013 09:58:23 +0000 (11:58 +0200)]
reduce number of distinct error format strings a bit

10 years agoextend semantics of 'basestring' typed variables to represent exactly bytes/str/unico...
Stefan Behnel [Sun, 6 Oct 2013 09:52:53 +0000 (11:52 +0200)]
extend semantics of 'basestring' typed variables to represent exactly bytes/str/unicode but no subtypes

10 years agoMore complete array type parsing.
Robert Bradshaw [Fri, 4 Oct 2013 07:44:12 +0000 (00:44 -0700)]
More complete array type parsing.

Also fixed passing templates through complex types.

10 years agoFix self-assignment warnings.
Robert Bradshaw [Fri, 4 Oct 2013 06:21:45 +0000 (23:21 -0700)]
Fix self-assignment warnings.

This is somewhat of a Gordian Knot approach, but seems to do the trick.

10 years agoAlternative syntax for c array declarators.
Robert Bradshaw [Fri, 4 Oct 2013 05:06:15 +0000 (22:06 -0700)]
Alternative syntax for c array declarators.

10 years agoWarn for non-trivial type declarators in shared declarations.
Robert Bradshaw [Fri, 4 Oct 2013 04:43:48 +0000 (21:43 -0700)]
Warn for non-trivial type declarators in shared declarations.

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.