platform/upstream/python-cython.git
10 years agoimprove some class comments
Stefan Behnel [Sat, 16 Nov 2013 20:58:35 +0000 (21:58 +0100)]
improve some class comments

10 years agomove qualname calculation transform a little later in the pipeline
Stefan Behnel [Sat, 16 Nov 2013 07:22:42 +0000 (08:22 +0100)]
move qualname calculation transform a little later in the pipeline

10 years agofix tree traversal for FusedCFuncDefNode
Stefan Behnel [Sat, 16 Nov 2013 07:22:09 +0000 (08:22 +0100)]
fix tree traversal for FusedCFuncDefNode

10 years agofix qualname calculation crash for c(p)def functions/classes
Stefan Behnel [Fri, 15 Nov 2013 21:30:28 +0000 (22:30 +0100)]
fix qualname calculation crash for c(p)def functions/classes

10 years agomove PEP 3155 qualname tests into separate test module
Stefan Behnel [Fri, 15 Nov 2013 20:47:03 +0000 (21:47 +0100)]
move PEP 3155 qualname tests into separate test module

--HG--
rename : tests/run/cyfunction.pyx => tests/run/qualname.pyx

10 years agomerge
Stefan Behnel [Fri, 15 Nov 2013 20:41:12 +0000 (21:41 +0100)]
merge

10 years agoreimplement PEP 3155 __qualname__ calculation in a dedicated transform to base it...
Stefan Behnel [Fri, 15 Nov 2013 20:38:45 +0000 (21:38 +0100)]
reimplement PEP 3155 __qualname__ calculation in a dedicated transform to base it on the node structure instead of the scopes (which fails for class scopes)

10 years agoMerge pull request #268 from andreabedini/master
scoder [Mon, 11 Nov 2013 11:15:12 +0000 (03:15 -0800)]
Merge pull request #268 from andreabedini/master

Fix npy_bool signedness

10 years agoFix npy_bool signedness
Andrea Bedini [Mon, 11 Nov 2013 08:29:59 +0000 (19:29 +1100)]
Fix npy_bool signedness

From numpy's definition in

https://github.com/numpy/numpy/blob/master/numpy/core/include/numpy/npy_common.h#L211

```typedef unsigned char npy_bool;```

10 years agoavoid pessimisation when int-indexing into dicts
Stefan Behnel [Sun, 10 Nov 2013 18:12:24 +0000 (19:12 +0100)]
avoid pessimisation when int-indexing into dicts

10 years agofix C compiler warning in Py2.4
Stefan Behnel [Sun, 10 Nov 2013 15:59:40 +0000 (16:59 +0100)]
fix C compiler warning in Py2.4

10 years agoinline PyUnicode_Compare() function for equality comparisons
Stefan Behnel [Sun, 10 Nov 2013 15:54:05 +0000 (16:54 +0100)]
inline PyUnicode_Compare() function for equality comparisons

10 years agooptimise string equality comparison by always looking at the first character before...
Stefan Behnel [Sun, 10 Nov 2013 14:52:48 +0000 (15:52 +0100)]
optimise string equality comparison by always looking at the first character before calling into the C-API

--HG--
extra : amend_source : 65f946184bc3b291289c54f6787aba7d2ad43b20

10 years agoimplement metaclass calculation/validation algorithm, make classes inherit their...
Stefan Behnel [Sun, 27 Oct 2013 14:53:43 +0000 (15:53 +0100)]
implement metaclass calculation/validation algorithm, make classes inherit their parents' metaclass

10 years agoimplement minor special case of indexing into an inferred 1-char Unicode string
Stefan Behnel [Sat, 9 Nov 2013 13:57:57 +0000 (14:57 +0100)]
implement minor special case of indexing into an inferred 1-char Unicode string

--HG--
extra : amend_source : 068dca3eae20906b495571f1d80548dc5f99ed51

10 years agofix utility function signature
Stefan Behnel [Sat, 9 Nov 2013 08:38:56 +0000 (09:38 +0100)]
fix utility function signature

10 years agowork around stupid C compiler warnings about tests being always true due to integer...
Stefan Behnel [Sat, 9 Nov 2013 08:24:13 +0000 (09:24 +0100)]
work around stupid C compiler warnings about tests being always true due to integer ranges

10 years agoC++ compilation fix
Stefan Behnel [Sat, 9 Nov 2013 07:54:46 +0000 (08:54 +0100)]
C++ compilation fix

10 years agoadd another straight exception case to macros
Stefan Behnel [Sat, 9 Nov 2013 07:45:04 +0000 (08:45 +0100)]
add another straight exception case to macros

10 years agofix C compiler warning in overflow tests
Stefan Behnel [Sat, 9 Nov 2013 07:10:37 +0000 (08:10 +0100)]
fix C compiler warning in overflow tests

10 years agoreplace some redundant utility functions by explicit exceptions
Stefan Behnel [Sat, 9 Nov 2013 07:04:29 +0000 (08:04 +0100)]
replace some redundant utility functions by explicit exceptions

10 years agomake fast path in Get/SetItemInt() utility functions safe for sizeof(index type)...
Stefan Behnel [Sat, 9 Nov 2013 06:48:42 +0000 (07:48 +0100)]
make fast path in Get/SetItemInt() utility functions safe for sizeof(index type) >= sizeof(Py_ssize_t)

10 years agofix copy&paste code in __Pyx_SetItemInt_ByteArray_Generic()
Stefan Behnel [Fri, 8 Nov 2013 13:40:02 +0000 (14:40 +0100)]
fix copy&paste code in __Pyx_SetItemInt_ByteArray_Generic()

10 years agoclean up some code redundancy
Stefan Behnel [Fri, 8 Nov 2013 12:39:20 +0000 (13:39 +0100)]
clean up some code redundancy

10 years agoadd value range check for C level assignments to bytearray indices in order to mimic...
Stefan Behnel [Fri, 8 Nov 2013 12:06:55 +0000 (13:06 +0100)]
add value range check for C level assignments to bytearray indices in order to mimic the safe Python behaviour

10 years agofix test
Stefan Behnel [Thu, 7 Nov 2013 10:07:58 +0000 (11:07 +0100)]
fix test

10 years agofix test in older Py3.x versions, minor cleanups
Stefan Behnel [Thu, 7 Nov 2013 09:09:45 +0000 (10:09 +0100)]
fix test in older Py3.x versions, minor cleanups

10 years agosupport 'global' in Python class body
Stefan Behnel [Thu, 7 Nov 2013 07:13:35 +0000 (08:13 +0100)]
support 'global' in Python class body

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

10 years agofix "__qualname__" of names defined as 'global'
Stefan Behnel [Thu, 7 Nov 2013 07:06:53 +0000 (08:06 +0100)]
fix "__qualname__" of names defined as 'global'

10 years agosupport bytearray as auto encoding string type
Stefan Behnel [Wed, 6 Nov 2013 06:36:03 +0000 (07:36 +0100)]
support bytearray as auto encoding string type

--HG--
rename : tests/run/str_ascii_auto_encoding.pyx => tests/run/bytearray_ascii_auto_encoding.pyx
rename : tests/run/str_default_auto_encoding.pyx => tests/run/bytearray_default_auto_encoding.pyx

10 years agoadd note to fused types docs that they are not supported for attributes of extension...
Stefan Behnel [Wed, 6 Nov 2013 05:34:59 +0000 (06:34 +0100)]
add note to fused types docs that they are not supported for attributes of extension types

10 years agoimplement (and thus, fix) index assignments to bytearray objects
Stefan Behnel [Tue, 5 Nov 2013 20:00:57 +0000 (21:00 +0100)]
implement (and thus, fix) index assignments to bytearray objects

10 years agoMerge pull request #267 from andreasvc/master
Robert Bradshaw [Tue, 5 Nov 2013 17:52:37 +0000 (09:52 -0800)]
Merge pull request #267 from andreasvc/master

No error checking for PyFloat_AS_DOUBLE() as documented

10 years agomerge 0.19.x branch into master
Stefan Behnel [Sun, 3 Nov 2013 17:31:34 +0000 (18:31 +0100)]
merge 0.19.x branch into master

10 years agoavoid useless lookup of unknown encoding (fixes compiler crash)
Stefan Behnel [Sun, 3 Nov 2013 17:18:02 +0000 (18:18 +0100)]
avoid useless lookup of unknown encoding (fixes compiler crash)

10 years agoavoid useless lookup of unknown encoding (fixes compiler crash)
Stefan Behnel [Sun, 3 Nov 2013 17:18:02 +0000 (18:18 +0100)]
avoid useless lookup of unknown encoding (fixes compiler crash)

--HG--
extra : transplant_source : %D5%D9Izb%7F%E6%AF%91%9A2j%25%FC%27%85%7CFs5

10 years agoadd regression test for non-optimised unicode.encode() calls
Stefan Behnel [Sun, 3 Nov 2013 17:30:31 +0000 (18:30 +0100)]
add regression test for non-optimised unicode.encode() calls

10 years agodisable Py2.6+ bytearray tests in earlier Python versions
Stefan Behnel [Sun, 3 Nov 2013 15:09:23 +0000 (16:09 +0100)]
disable Py2.6+ bytearray tests in earlier Python versions

10 years agoadd assert to find cases where we fail to generate code for indexing/slicing
Stefan Behnel [Sun, 3 Nov 2013 15:04:25 +0000 (16:04 +0100)]
add assert to find cases where we fail to generate code for indexing/slicing

--HG--
extra : amend_source : b6140bfd07fdf9ae0c7dde2037b3cbff682260e7

10 years agooptimise indexing and slicing of bytearray
Stefan Behnel [Sun, 3 Nov 2013 15:01:05 +0000 (16:01 +0100)]
optimise indexing and slicing of bytearray

10 years agoNo error checking for PyFloat_AS_DOUBLE() as documented
Andreas van Cranenburgh [Sun, 3 Nov 2013 13:56:30 +0000 (14:56 +0100)]
No error checking for PyFloat_AS_DOUBLE() as documented

10 years agoMerge remote-tracking branch 'upstream/master'
Andreas van Cranenburgh [Sun, 3 Nov 2013 13:34:09 +0000 (14:34 +0100)]
Merge remote-tracking branch 'upstream/master'

10 years agominor cleanup
Stefan Behnel [Sun, 3 Nov 2013 13:01:43 +0000 (14:01 +0100)]
minor cleanup

10 years agowhitespace
Stefan Behnel [Sun, 3 Nov 2013 13:01:17 +0000 (14:01 +0100)]
whitespace

10 years agooptimise bytearray.decode()
Stefan Behnel [Sun, 3 Nov 2013 12:59:20 +0000 (13:59 +0100)]
optimise bytearray.decode()

--HG--
rename : tests/run/bytesmethods.pyx => tests/run/bytearraymethods.pyx

10 years agofix C pointer coercion problem when coercing bytes to signed char*
Stefan Behnel [Sat, 2 Nov 2013 21:00:04 +0000 (22:00 +0100)]
fix C pointer coercion problem when coercing bytes to signed char*

10 years agofix C pointer coercion problem when coercing signed/unsigned char* to bytearray
Stefan Behnel [Sat, 2 Nov 2013 19:08:14 +0000 (20:08 +0100)]
fix C pointer coercion problem when coercing signed/unsigned char* to bytearray

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