platform/upstream/python-cython.git
11 years agofix release date 0.19.1
Stefan Behnel [Sat, 11 May 2013 05:38:05 +0000 (07:38 +0200)]
fix release date

11 years agoMerge branch 'master' into 0.19.x
Stefan Behnel [Sat, 11 May 2013 05:33:37 +0000 (07:33 +0200)]
Merge branch 'master' into 0.19.x

Conflicts:
CHANGES.rst

11 years agouse new Py3.x signature for PyUnicode_DecodeMBCSStateful() declaration
Stefan Behnel [Sat, 11 May 2013 05:31:02 +0000 (07:31 +0200)]
use new Py3.x signature for PyUnicode_DecodeMBCSStateful() declaration

11 years agoMore efficient find_root_package_dir.
Robert Bradshaw [Sat, 11 May 2013 00:04:28 +0000 (17:04 -0700)]
More efficient find_root_package_dir.

11 years agoFix build_dir extended test case.
Robert Bradshaw [Sat, 11 May 2013 00:03:30 +0000 (17:03 -0700)]
Fix build_dir extended test case.

11 years agoMerge pull request #224 from gandalf013/pyssize_t
Robert Bradshaw [Fri, 10 May 2013 21:56:25 +0000 (14:56 -0700)]
Merge pull request #224 from gandalf013/pyssize_t

int -> Py_ssize_t in cpython pxd files

11 years agoa bit too overzealous in converting int to Py_ssize_t
Alok Singhal [Fri, 10 May 2013 21:25:48 +0000 (14:25 -0700)]
a bit too overzealous in converting int to Py_ssize_t

11 years agochangelog
Stefan Behnel [Fri, 10 May 2013 21:09:43 +0000 (23:09 +0200)]
changelog

11 years agofix optimisation of isinstance(X, type)
Stefan Behnel [Fri, 10 May 2013 21:07:19 +0000 (23:07 +0200)]
fix optimisation of isinstance(X, type)

11 years agoint -> Py_ssize_t in cpython pxd files
Alok Singhal [Fri, 10 May 2013 20:34:28 +0000 (13:34 -0700)]
int -> Py_ssize_t in cpython pxd files

11 years agoextend build_dir test in a way that I think should work but doesn't
Stefan Behnel [Fri, 10 May 2013 17:25:47 +0000 (19:25 +0200)]
extend build_dir test in a way that I think should work but doesn't

11 years agomore code cleanups
Stefan Behnel [Fri, 10 May 2013 16:32:33 +0000 (18:32 +0200)]
more code cleanups

11 years agofix build_dir copying in Py2.[45]
Stefan Behnel [Fri, 10 May 2013 16:27:14 +0000 (18:27 +0200)]
fix build_dir copying in Py2.[45]

11 years agominor code cleanup
Stefan Behnel [Fri, 10 May 2013 16:18:06 +0000 (18:18 +0200)]
minor code cleanup

11 years agoUpdate release notes.
Robert Bradshaw [Fri, 10 May 2013 09:04:56 +0000 (02:04 -0700)]
Update release notes.

11 years agoFix build_dir test.
Robert Bradshaw [Fri, 10 May 2013 07:57:49 +0000 (00:57 -0700)]
Fix build_dir test.

11 years agoAdd relative extern files to dependencies.
Robert Bradshaw [Fri, 10 May 2013 07:56:38 +0000 (00:56 -0700)]
Add relative extern files to dependencies.

11 years agoprepare release of 0.19.1
Stefan Behnel [Fri, 10 May 2013 07:23:24 +0000 (09:23 +0200)]
prepare release of 0.19.1

11 years agoupdate setup.py script to use cythonize()
Stefan Behnel [Thu, 9 May 2013 06:56:03 +0000 (08:56 +0200)]
update setup.py script to use cythonize()

--HG--
extra : rebase_source : 6494c60e7f79a9cc85fe72a7adf325557f6de2be

11 years agoremove 'from datetime cimport *' line from cpython/__init__.pxd as it refers to a...
Stefan Behnel [Fri, 10 May 2013 05:31:36 +0000 (07:31 +0200)]
remove 'from datetime cimport *' line from cpython/__init__.pxd as it refers to a separate module, not the core C-API

--HG--
extra : rebase_source : bafa0a661abe97868fe254b3ce2b5e63b8654990

11 years agoremove 'from datetime cimport *' line from cpython/__init__.pxd as it refers to a...
Stefan Behnel [Fri, 10 May 2013 05:31:36 +0000 (07:31 +0200)]
remove 'from datetime cimport *' line from cpython/__init__.pxd as it refers to a separate module, not the core C-API

--HG--
extra : rebase_source : bafa0a661abe97868fe254b3ce2b5e63b8654990

11 years agoMerge branch 'build_dir'
Robert Bradshaw [Thu, 9 May 2013 18:18:54 +0000 (11:18 -0700)]
Merge branch 'build_dir'

11 years agoAdd build_dir test.
Robert Bradshaw [Thu, 9 May 2013 18:18:25 +0000 (11:18 -0700)]
Add build_dir test.

11 years agoupdate setup.py script to use cythonize()
Stefan Behnel [Thu, 9 May 2013 06:56:03 +0000 (08:56 +0200)]
update setup.py script to use cythonize()

--HG--
extra : rebase_source : 6494c60e7f79a9cc85fe72a7adf325557f6de2be

11 years agoMerge branch 'master' into 0.19.x
Stefan Behnel [Wed, 8 May 2013 19:09:32 +0000 (21:09 +0200)]
Merge branch 'master' into 0.19.x

11 years agochangelog
Stefan Behnel [Wed, 8 May 2013 14:10:50 +0000 (16:10 +0200)]
changelog

11 years agoFix typo in dependency checking.
Robert Bradshaw [Wed, 8 May 2013 06:20:54 +0000 (23:20 -0700)]
Fix typo in dependency checking.

11 years agoupdate version to 0.19.1rc1
Stefan Behnel [Tue, 7 May 2013 19:17:42 +0000 (21:17 +0200)]
update version to 0.19.1rc1

11 years agoRevert "Undo sorting types by inheritance until we figure out what's up with Sage."
Robert Bradshaw [Tue, 7 May 2013 18:15:37 +0000 (11:15 -0700)]
Revert "Undo sorting types by inheritance until we figure out what's up with Sage."

This reverts commit 12d7dbb301851508af7950fbb4307a1d5b2af615.

11 years agoUndo sorting types by inheritance until we figure out what's up with Sage.
Robert Bradshaw [Tue, 7 May 2013 15:01:21 +0000 (08:01 -0700)]
Undo sorting types by inheritance until we figure out what's up with Sage.

11 years agoadd assertion, just in case
Stefan Behnel [Mon, 6 May 2013 19:15:37 +0000 (21:15 +0200)]
add assertion, just in case

11 years agouse unique 'objstruct_cname' instead of 'name' when sorting extension types
Stefan Behnel [Mon, 6 May 2013 19:03:22 +0000 (21:03 +0200)]
use unique 'objstruct_cname' instead of 'name' when sorting extension types

11 years agoMerge pull request #223 from nnemkin/cdef_class_order
Robert Bradshaw [Mon, 6 May 2013 15:20:26 +0000 (08:20 -0700)]
Merge pull request #223 from nnemkin/cdef_class_order

Order cdef classes by inheritance before generating the code.

11 years agoOrder cdef classes by inheritance before generating the code.
Nikita Nemkin [Sun, 5 May 2013 13:50:45 +0000 (19:50 +0600)]
Order cdef classes by inheritance before generating the code.

11 years agochangelog
Stefan Behnel [Sun, 5 May 2013 12:41:36 +0000 (14:41 +0200)]
changelog

11 years agoMerge pull request #222 from nnemkin/cy_utility_decorators
scoder [Sun, 5 May 2013 12:30:15 +0000 (05:30 -0700)]
Merge pull request #222 from nnemkin/cy_utility_decorators

Hide Cython utility classes (like memoryview) from Python level module scope.

11 years agoremove credits, as requested
Stefan Behnel [Sun, 5 May 2013 06:45:44 +0000 (08:45 +0200)]
remove credits, as requested

11 years agoCython utility cdef classes are internal by default. Fixes #775.
Nikita Nemkin [Sat, 4 May 2013 16:59:27 +0000 (22:59 +0600)]
Cython utility cdef classes are internal by default. Fixes #775.

11 years agoAllow cdef class decorators in Cython utility code.
Nikita Nemkin [Sat, 4 May 2013 14:14:18 +0000 (20:14 +0600)]
Allow cdef class decorators in Cython utility code.

11 years agochangelog
Stefan Behnel [Sat, 4 May 2013 13:40:50 +0000 (15:40 +0200)]
changelog

11 years agoMerge pull request #220 from nnemkin/elide_empty_slots
scoder [Sat, 4 May 2013 13:39:26 +0000 (06:39 -0700)]
Merge pull request #220 from nnemkin/elide_empty_slots

Do not generate tables for completely empty slot suites.

11 years agoMerge pull request #221 from nnemkin/windows_test_fixes
scoder [Sat, 4 May 2013 13:27:26 +0000 (06:27 -0700)]
Merge pull request #221 from nnemkin/windows_test_fixes

Fixes for absolute_import and inop test failures on Windows.

11 years agoFixes for absolute_import and inop test failures on Windows.
Nikita Nemkin [Sat, 4 May 2013 13:03:47 +0000 (19:03 +0600)]
Fixes for absolute_import and inop test failures on Windows.

11 years agoDo not generate tables for completely empty slot suites.
Nikita Nemkin [Sat, 4 May 2013 07:24:58 +0000 (13:24 +0600)]
Do not generate tables for completely empty slot suites.

11 years agouse pre-built Python objects in __Pyx_ExportVoidPtr() utility function
Stefan Behnel [Wed, 1 May 2013 13:12:56 +0000 (15:12 +0200)]
use pre-built Python objects in __Pyx_ExportVoidPtr() utility function

11 years agofix build
Stefan Behnel [Wed, 1 May 2013 12:52:48 +0000 (14:52 +0200)]
fix build

11 years agomove [GS]etVTable utility code to more appropriate ImportExport.c file
Stefan Behnel [Wed, 1 May 2013 12:12:40 +0000 (14:12 +0200)]
move [GS]etVTable utility code to more appropriate ImportExport.c file

11 years agouse pre-instantiated identifier string when looking up or setting the vtable of expor...
Stefan Behnel [Wed, 1 May 2013 12:03:40 +0000 (14:03 +0200)]
use pre-instantiated identifier string when looking up or setting the vtable of exported/imported extension types

11 years agomove vtable get/set utility code into ExtensionTypes.c file
Stefan Behnel [Wed, 1 May 2013 11:57:03 +0000 (13:57 +0200)]
move vtable get/set utility code into ExtensionTypes.c file

11 years agohandle some more cases where the error status is known to be used and clean up 'unrai...
Stefan Behnel [Wed, 1 May 2013 11:46:19 +0000 (13:46 +0200)]
handle some more cases where the error status is known to be used and clean up 'unraisable exception' code

11 years agominor code cleanups
Stefan Behnel [Wed, 1 May 2013 11:23:19 +0000 (13:23 +0200)]
minor code cleanups

11 years agosuppress warnings about unused error status variables in functions
Stefan Behnel [Wed, 1 May 2013 11:20:14 +0000 (13:20 +0200)]
suppress warnings about unused error status variables in functions

11 years agochangelog
Stefan Behnel [Wed, 1 May 2013 11:06:31 +0000 (13:06 +0200)]
changelog

11 years agochangelog
Stefan Behnel [Wed, 1 May 2013 10:13:57 +0000 (12:13 +0200)]
changelog

11 years agoMerge pull request #216 from nnemkin/autodoc_improvements
scoder [Wed, 1 May 2013 09:56:01 +0000 (02:56 -0700)]
Merge pull request #216 from nnemkin/autodoc_improvements

Autodoc improvements

11 years agochangelog
Stefan Behnel [Wed, 1 May 2013 08:18:34 +0000 (10:18 +0200)]
changelog

11 years agomake analyse_const_expression() pass on the return value of its internal call to...
Stefan Behnel [Wed, 1 May 2013 08:15:09 +0000 (10:15 +0200)]
make analyse_const_expression() pass on the return value of its internal call to analyse_types()

11 years agofix negative-index warning on empty slices
Stefan Behnel [Mon, 29 Apr 2013 17:28:46 +0000 (19:28 +0200)]
fix negative-index warning on empty slices

11 years agoMerge pull request #219 from nnemkin/T42_test
Robert Bradshaw [Sun, 28 Apr 2013 07:24:23 +0000 (00:24 -0700)]
Merge pull request #219 from nnemkin/T42_test

Regression test for #42.

11 years agoRegression test for #42.
Nikita Nemkin [Sat, 27 Apr 2013 03:40:55 +0000 (09:40 +0600)]
Regression test for #42.

11 years agochangelog
Stefan Behnel [Fri, 26 Apr 2013 06:15:00 +0000 (08:15 +0200)]
changelog

11 years agoadd CYTHON_RESTRICT definition for MSVC
Stefan Behnel [Fri, 26 Apr 2013 03:57:18 +0000 (05:57 +0200)]
add CYTHON_RESTRICT definition for MSVC

11 years agoadd cdef-keywords tests for exttype methods
Stefan Behnel [Thu, 25 Apr 2013 19:28:04 +0000 (21:28 +0200)]
add cdef-keywords tests for exttype methods

11 years agofix 'restrict' usage in g++
Stefan Behnel [Thu, 25 Apr 2013 15:48:14 +0000 (17:48 +0200)]
fix 'restrict' usage in g++

11 years agoadd visible warning when negative indices are used in wraparound=False sections
Stefan Behnel [Thu, 25 Apr 2013 13:47:26 +0000 (15:47 +0200)]
add visible warning when negative indices are used in wraparound=False sections

11 years agoMerge pull request #218 from larsmans/strspn
Robert Bradshaw [Wed, 24 Apr 2013 22:23:47 +0000 (15:23 -0700)]
Merge pull request #218 from larsmans/strspn

Add strspn to string.pxd

11 years agoadd strspn to string.pxd
Lars Buitinck [Wed, 24 Apr 2013 21:45:12 +0000 (23:45 +0200)]
add strspn to string.pxd

11 years agofix test
Stefan Behnel [Wed, 24 Apr 2013 15:35:42 +0000 (17:35 +0200)]
fix test

11 years agoMerge pull request #217 from nnemkin/runtests_srctree_fix
scoder [Wed, 24 Apr 2013 13:51:37 +0000 (06:51 -0700)]
Merge pull request #217 from nnemkin/runtests_srctree_fix

Fixed .srctree tests execution

11 years agoFixed .srctree tests execution on Windows.
Nikita Nemkin [Wed, 24 Apr 2013 13:22:37 +0000 (19:22 +0600)]
Fixed .srctree tests execution on Windows.

11 years agofix compiler crash on bad code (complex % x) and move directive handling in ModNode...
Stefan Behnel [Mon, 22 Apr 2013 19:32:06 +0000 (21:32 +0200)]
fix compiler crash on bad code (complex % x) and move directive handling in ModNode to analysis phase

11 years agoRemoved the warning about docstrings for private attributes. Fixed erroneous docstrin...
Nikita Nemkin [Sun, 21 Apr 2013 08:26:16 +0000 (14:26 +0600)]
Removed the warning about docstrings for private attributes. Fixed erroneous docstring recognition past the blank line.

11 years agofix test in Py3
Stefan Behnel [Sun, 21 Apr 2013 06:53:33 +0000 (08:53 +0200)]
fix test in Py3

11 years agofix test result reporting
Stefan Behnel [Sun, 21 Apr 2013 06:33:19 +0000 (08:33 +0200)]
fix test result reporting

11 years agofix switch transform after changing boolean coercion of integer expressions
Stefan Behnel [Sun, 21 Apr 2013 06:04:31 +0000 (08:04 +0200)]
fix switch transform after changing boolean coercion of integer expressions

11 years agoimprove constant folding for boolean expressions (and/or)
Stefan Behnel [Sun, 21 Apr 2013 06:01:22 +0000 (08:01 +0200)]
improve constant folding for boolean expressions (and/or)

11 years agofix compiler crash
Stefan Behnel [Sun, 21 Apr 2013 05:57:10 +0000 (07:57 +0200)]
fix compiler crash

11 years agoalways convert C integer values to 1/0 when testing them for their boolean value
Stefan Behnel [Sat, 20 Apr 2013 20:26:55 +0000 (22:26 +0200)]
always convert C integer values to 1/0 when testing them for their boolean value

11 years agominor code cleanup
Stefan Behnel [Sat, 20 Apr 2013 12:01:22 +0000 (14:01 +0200)]
minor code cleanup

11 years agochangelog
Stefan Behnel [Fri, 19 Apr 2013 15:05:25 +0000 (17:05 +0200)]
changelog

11 years agoAdded tag 0.19 for changeset 48407fa3f3c9
Stefan Behnel [Fri, 19 Apr 2013 13:05:20 +0000 (15:05 +0200)]
Added tag 0.19 for changeset 48407fa3f3c9

11 years agoAdded tag 0.19rc1 for changeset 4818f5b68eb4 0.19
Stefan Behnel [Fri, 19 Apr 2013 13:04:36 +0000 (15:04 +0200)]
Added tag 0.19rc1 for changeset 4818f5b68eb4

11 years agoprepare release of 0.19
Stefan Behnel [Fri, 19 Apr 2013 13:03:57 +0000 (15:03 +0200)]
prepare release of 0.19

11 years agominor code cleanups 0.19rc1
Stefan Behnel [Wed, 17 Apr 2013 06:35:40 +0000 (08:35 +0200)]
minor code cleanups

11 years agoMerge pull request #215 from robertwb/depends
scoder [Wed, 17 Apr 2013 06:30:46 +0000 (23:30 -0700)]
Merge pull request #215 from robertwb/depends

Resolve depends attribute with respect to include_dirs.

11 years agoMerge pull request #214 from robertwb/T808
scoder [Wed, 17 Apr 2013 06:12:15 +0000 (23:12 -0700)]
Merge pull request #214 from robertwb/T808

T808

11 years agoTest for T808.
Robert Bradshaw [Wed, 17 Apr 2013 05:35:31 +0000 (22:35 -0700)]
Test for T808.

11 years agoCan't skip subclass tp_new, as that's where the vtable is set up (T808).
Robert Bradshaw [Wed, 17 Apr 2013 05:29:18 +0000 (22:29 -0700)]
Can't skip subclass tp_new, as that's where the vtable is set up (T808).

11 years agoResolve depends attribute with respect to include_dirs.
Robert Bradshaw [Wed, 17 Apr 2013 05:14:12 +0000 (22:14 -0700)]
Resolve depends attribute with respect to include_dirs.

11 years agofix pyregr test runner
Stefan Behnel [Tue, 16 Apr 2013 05:45:11 +0000 (07:45 +0200)]
fix pyregr test runner

11 years agoTest fixes for autodoc improvements.
Nikita Nemkin [Mon, 15 Apr 2013 18:44:09 +0000 (00:44 +0600)]
Test fixes for autodoc improvements.

11 years agoadd safety fix for Python globals in debug writer
Stefan Behnel [Mon, 15 Apr 2013 17:30:39 +0000 (19:30 +0200)]
add safety fix for Python globals in debug writer

11 years agodocument c_string_type and c_string_encoding directives in string tutorial
Stefan Behnel [Mon, 15 Apr 2013 17:15:23 +0000 (19:15 +0200)]
document c_string_type and c_string_encoding directives in string tutorial

11 years agorename auto encoding tests and add tests for c_string_type=unicode
Stefan Behnel [Mon, 15 Apr 2013 17:05:47 +0000 (19:05 +0200)]
rename auto encoding tests and add tests for c_string_type=unicode

--HG--
rename : tests/run/unicode_ascii_encoding.pyx => tests/run/str_ascii_auto_encoding.pyx
rename : tests/run/unicode_default_encoding.pyx => tests/run/str_default_auto_encoding.pyx
rename : tests/run/unicode_ascii_encoding.pyx => tests/run/unicode_ascii_auto_encoding.pyx
rename : tests/run/unicode_default_encoding.pyx => tests/run/unicode_default_auto_encoding.pyx

11 years agoprepare release of 0.19rc1
Stefan Behnel [Sun, 14 Apr 2013 20:30:57 +0000 (22:30 +0200)]
prepare release of 0.19rc1

11 years agochangelog
Stefan Behnel [Sun, 14 Apr 2013 18:58:33 +0000 (20:58 +0200)]
changelog

11 years agoAllow cppclasses to be declared nogil.
John Stumpo [Sun, 14 Apr 2013 18:52:07 +0000 (20:52 +0200)]
Allow cppclasses to be declared nogil.
Doing so just makes all methods implicitly nogil. This also makes nogil
on a cdef extern from statement do the right thing to cppclasses (and
their methods) contained inside.
---
 Cython/Compiler/Parsing.py  |    3 ++-
 tests/compile/cpp_nogil.h   |    9 +++++++++
 tests/compile/cpp_nogil.pyx |   18 ++++++++++++++++++
 3 files changed, 29 insertions(+), 1 deletion(-)
 create mode 100644 tests/compile/cpp_nogil.h
 create mode 100644 tests/compile/cpp_nogil.pyx

11 years agoclean up dependencies of memoryview utility code snippets a bit to get rid of some...
Stefan Behnel [Sun, 14 Apr 2013 17:56:05 +0000 (19:56 +0200)]
clean up dependencies of memoryview utility code snippets a bit to get rid of some 'unused function' C compiler warnings

11 years agosuppress some C compiler warnings about unused function arguments
Stefan Behnel [Sun, 14 Apr 2013 16:52:41 +0000 (18:52 +0200)]
suppress some C compiler warnings about unused function arguments

11 years agoclean up utility code a bit
Stefan Behnel [Sun, 14 Apr 2013 16:42:32 +0000 (18:42 +0200)]
clean up utility code a bit