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

11 years agoclean up utility code a bit
Stefan Behnel [Sun, 14 Apr 2013 15:58:10 +0000 (17:58 +0200)]
clean up utility code a bit

11 years agowork around inability to detect existing Python globals (e.g. from imports) when...
Stefan Behnel [Sun, 14 Apr 2013 15:37:31 +0000 (17:37 +0200)]
work around inability to detect existing Python globals (e.g. from imports) when cpdef-ing global functions

11 years agoExclude memoryview test from python versions <= 2.5
Mark Florisson [Sun, 14 Apr 2013 15:29:06 +0000 (16:29 +0100)]
Exclude memoryview test from python versions <= 2.5

11 years agoMerge pull request #212 from markflorisson88/master
Mark Florisson [Sun, 14 Apr 2013 13:22:10 +0000 (06:22 -0700)]
Merge pull request #212 from markflorisson88/master

Relax stride check for zero- and one-sized dimensions

11 years agoAllow arbitrary strides and zero- and one-sized dimensions
Mark Florisson [Sun, 14 Apr 2013 12:06:59 +0000 (13:06 +0100)]
Allow arbitrary strides and zero- and one-sized dimensions

11 years agofix so file path building in Py2.[45]
Stefan Behnel [Sun, 14 Apr 2013 10:08:04 +0000 (12:08 +0200)]
fix so file path building in Py2.[45]

11 years agoremove redundant importing overhead for newly built test module in test runner and...
Stefan Behnel [Sun, 14 Apr 2013 09:35:42 +0000 (11:35 +0200)]
remove redundant importing overhead for newly built test module in test runner and make sure we always import exactly the one we just built

11 years agoMerge pull request #201 from strohel/transpose-refcount-fix
Mark Florisson [Fri, 12 Apr 2013 16:35:27 +0000 (09:35 -0700)]
Merge pull request #201 from strohel/transpose-refcount-fix

Naive approach to fix memview incref/decref asymmetry in transpose

11 years agoAdded tag 0.19b2 for changeset 52beb5b16df5
Stefan Behnel [Fri, 12 Apr 2013 15:20:41 +0000 (17:20 +0200)]
Added tag 0.19b2 for changeset 52beb5b16df5

11 years agoprepare release of 0.19 beta 2 0.19b2
Stefan Behnel [Fri, 12 Apr 2013 10:50:33 +0000 (12:50 +0200)]
prepare release of 0.19 beta 2

11 years agochangelog
Stefan Behnel [Fri, 12 Apr 2013 09:31:34 +0000 (11:31 +0200)]
changelog

11 years agoprevent redundant type checks for None values, especially in cascaded assignments
Stefan Behnel [Fri, 12 Apr 2013 09:25:21 +0000 (11:25 +0200)]
prevent redundant type checks for None values, especially in cascaded assignments

11 years agofix cascaded assignments of None to extension type variables
Stefan Behnel [Fri, 12 Apr 2013 09:20:35 +0000 (11:20 +0200)]
fix cascaded assignments of None to extension type variables

11 years agoexplicitly disable object-in-buffer tests in PyPy
Stefan Behnel [Fri, 12 Apr 2013 08:42:23 +0000 (10:42 +0200)]
explicitly disable object-in-buffer tests in PyPy

11 years agoinline normal case of getattr(o,n)
Stefan Behnel [Thu, 11 Apr 2013 17:57:53 +0000 (19:57 +0200)]
inline normal case of getattr(o,n)

--HG--
extra : rebase_source : 9a5bbb4f08a0eb5be71afd48d9ad5566d8a39efc

11 years agoupdate docs on optimised builtins
Stefan Behnel [Thu, 11 Apr 2013 17:49:30 +0000 (19:49 +0200)]
update docs on optimised builtins

--HG--
extra : rebase_source : fb47cc7e0154abb172016f1945dad2968b3f2a3e

11 years agoMerge pull request #211 from Juntalis/master
Robert Bradshaw [Thu, 11 Apr 2013 15:16:03 +0000 (08:16 -0700)]
Merge pull request #211 from Juntalis/master

Non-Wrapped Inline Declaration Breaking Compatibility with C89 Compilers

11 years agoFix build for non-C99 compatible compilers
Charles Grunwald (Juntalis) [Thu, 11 Apr 2013 09:41:23 +0000 (02:41 -0700)]
Fix build for non-C99 compatible compilers

11 years agoMerge pull request #210 from nbruin/master
scoder [Thu, 11 Apr 2013 07:28:56 +0000 (00:28 -0700)]
Merge pull request #210 from nbruin/master

Explain difference between cdef and cpdef

11 years agoexplain difference between cdef and cpdef
nbruin [Thu, 11 Apr 2013 02:55:48 +0000 (19:55 -0700)]
explain difference between cdef and cpdef

11 years agoexplain difference between cdef and cpdef
nbruin [Thu, 11 Apr 2013 02:52:01 +0000 (19:52 -0700)]
explain difference between cdef and cpdef

11 years agoexplain difference between cdef and cpdef
nbruin [Thu, 11 Apr 2013 02:47:44 +0000 (19:47 -0700)]
explain difference between cdef and cpdef

11 years agoexplain difference between cdef and cpdef
nbruin [Thu, 11 Apr 2013 02:40:08 +0000 (19:40 -0700)]
explain difference between cdef and cpdef

11 years agoexplain difference between cdef and cpdef
nbruin [Thu, 11 Apr 2013 02:32:56 +0000 (19:32 -0700)]
explain difference between cdef and cpdef

11 years agochangelog
Stefan Behnel [Wed, 10 Apr 2013 17:34:41 +0000 (19:34 +0200)]
changelog

11 years agoEnsure NAN is always initialized.
Robert Bradshaw [Tue, 9 Apr 2013 21:34:23 +0000 (14:34 -0700)]
Ensure NAN is always initialized.

11 years agoUndo redundant fix.
Robert Bradshaw [Tue, 9 Apr 2013 18:41:29 +0000 (11:41 -0700)]
Undo redundant fix.

11 years agoMerge pull request #204 from vmx/constcast
Robert Bradshaw [Tue, 9 Apr 2013 18:40:39 +0000 (11:40 -0700)]
Merge pull request #204 from vmx/constcast

Add casting to const

11 years agoConst cast fix.
Robert Bradshaw [Tue, 9 Apr 2013 18:39:06 +0000 (11:39 -0700)]
Const cast fix.

11 years agoadd "experimental!" warning to linetrace directive
Stefan Behnel [Tue, 9 Apr 2013 06:27:23 +0000 (08:27 +0200)]
add "experimental!" warning to linetrace directive

11 years agofix C++ warning
Stefan Behnel [Mon, 8 Apr 2013 16:19:48 +0000 (18:19 +0200)]
fix C++ warning

11 years agochangelog
Stefan Behnel [Mon, 8 Apr 2013 05:09:03 +0000 (07:09 +0200)]
changelog

11 years agoremove dead Py2.7+ code in <Py2.6 only code blocks and clean them up a bit
Stefan Behnel [Sun, 7 Apr 2013 11:00:41 +0000 (13:00 +0200)]
remove dead Py2.7+ code in <Py2.6 only code blocks and clean them up a bit

11 years agofix some C++ compiler warnings about char* constants
Stefan Behnel [Sun, 7 Apr 2013 10:47:58 +0000 (12:47 +0200)]
fix some C++ compiler warnings about char* constants

11 years agoAdded tag 0.19b1 for changeset 4f782ac7b3fd
Stefan Behnel [Sun, 7 Apr 2013 08:14:00 +0000 (10:14 +0200)]
Added tag 0.19b1 for changeset 4f782ac7b3fd

11 years agotest 'type_version_tag' directive and fix it in Py2 0.19b1
Stefan Behnel [Sun, 7 Apr 2013 05:38:45 +0000 (07:38 +0200)]
test 'type_version_tag' directive and fix it in Py2

--HG--
rename : tests/compile/ext_attribute_cache.pyx => tests/run/ext_attribute_cache.pyx

11 years agoenable Py_TPFLAGS_HAVE_VERSION_TAG on extension types by default (also in Py2) and...
Stefan Behnel [Sat, 6 Apr 2013 20:30:13 +0000 (22:30 +0200)]
enable Py_TPFLAGS_HAVE_VERSION_TAG on extension types by default (also in Py2) and provide 'type_version_tag' option to disable it

11 years agoremove unused left-over code
Stefan Behnel [Sat, 6 Apr 2013 16:13:08 +0000 (18:13 +0200)]
remove unused left-over code

11 years agoprepare release of 0.19 beta 1
Stefan Behnel [Sat, 6 Apr 2013 13:43:49 +0000 (15:43 +0200)]
prepare release of 0.19 beta 1

11 years agomerge
Stefan Behnel [Sat, 6 Apr 2013 13:42:48 +0000 (15:42 +0200)]
merge

11 years agoMerge pull request #207 from nnemkin/callconv_pointers_fix
scoder [Sat, 6 Apr 2013 13:26:34 +0000 (06:26 -0700)]
Merge pull request #207 from nnemkin/callconv_pointers_fix

Correctly handle function pointer typedefs with calling convention specified.

11 years agoMerge pull request #208 from nnemkin/cimport_from_pyx_fix
scoder [Sat, 6 Apr 2013 13:21:26 +0000 (06:21 -0700)]
Merge pull request #208 from nnemkin/cimport_from_pyx_fix

Fix extern variable cimport code in cimport_from_pyx mode

11 years agoMerge pull request #209 from nnemkin/local_error_reporting_vars
scoder [Sat, 6 Apr 2013 12:59:56 +0000 (05:59 -0700)]
Merge pull request #209 from nnemkin/local_error_reporting_vars

Consistently declare local error reporting variables (lineno, clineno, filename)

11 years agoIn cimport_from_pyx mode don't treat "cdef extern from" variables as being defined...
Nikita Nemkin [Sat, 6 Apr 2013 10:19:46 +0000 (16:19 +0600)]
In cimport_from_pyx mode don't treat "cdef extern from" variables as being defined, preventing erroneous cross-module cimport.

11 years agoConsistently declare local error reporting variables (lineno, clineno, filename)...
Nikita Nemkin [Sat, 6 Apr 2013 10:13:35 +0000 (16:13 +0600)]
Consistently declare local error reporting variables (lineno, clineno, filename) for all types of functions.

11 years agofix build
Stefan Behnel [Sat, 6 Apr 2013 05:42:55 +0000 (07:42 +0200)]
fix build

11 years agoMerge pull request #206 from nnemkin/cpp_condexpr_cast_fix
Robert Bradshaw [Fri, 5 Apr 2013 20:54:19 +0000 (13:54 -0700)]
Merge pull request #206 from nnemkin/cpp_condexpr_cast_fix

Fix C/C++ compilation error when if/else expression has extension class type.

11 years agofix tracing check outside of functions
Stefan Behnel [Fri, 5 Apr 2013 15:42:59 +0000 (17:42 +0200)]
fix tracing check outside of functions

11 years agoimplement experimental support for line tracing
Stefan Behnel [Fri, 5 Apr 2013 15:11:28 +0000 (17:11 +0200)]
implement experimental support for line tracing

11 years agowhitespace
Stefan Behnel [Fri, 5 Apr 2013 10:52:31 +0000 (12:52 +0200)]
whitespace

11 years agominor code simplification
Stefan Behnel [Fri, 5 Apr 2013 10:51:16 +0000 (12:51 +0200)]
minor code simplification

11 years agomove profiling utility code into external .c file
Stefan Behnel [Fri, 5 Apr 2013 10:50:11 +0000 (12:50 +0200)]
move profiling utility code into external .c file

11 years agoFix C++ compilation error when if/else expression has extension class type.
Nikita Nemkin [Fri, 5 Apr 2013 08:02:36 +0000 (14:02 +0600)]
Fix C++ compilation error when if/else expression has extension class type.

11 years agosimplify import-from code a little by moving the name lookup into a utility function
Stefan Behnel [Fri, 5 Apr 2013 07:15:49 +0000 (09:15 +0200)]
simplify import-from code a little by moving the name lookup into a utility function

11 years agoextend test case
Stefan Behnel [Thu, 4 Apr 2013 17:01:35 +0000 (19:01 +0200)]
extend test case

11 years agouse better internal link in documentation instead of linking to external Wiki
Stefan Behnel [Thu, 4 Apr 2013 15:55:40 +0000 (17:55 +0200)]
use better internal link in documentation instead of linking to external Wiki

11 years agoAllow function pointer typedefs with calling convention specified.
Nikita Nemkin [Thu, 4 Apr 2013 04:21:01 +0000 (10:21 +0600)]
Allow function pointer typedefs with calling convention specified.

11 years agoAdd casting to const
Volker Mische [Wed, 3 Apr 2013 15:05:10 +0000 (17:05 +0200)]
Add casting to const

The included test is derived from a real world case
which would lead to warnings in GCC if the pointer
wouldn't be explicitly casted to const.

11 years agoMerge pull request #203 from vmx/const-pointer
Robert Bradshaw [Wed, 3 Apr 2013 06:18:36 +0000 (23:18 -0700)]
Merge pull request #203 from vmx/const-pointer

Add support for const pointers

11 years agoAdd support for const pointers
Volker Mische [Tue, 2 Apr 2013 17:08:26 +0000 (19:08 +0200)]
Add support for const pointers

11 years agobroaden the effect of in-closure def node call inlining
Stefan Behnel [Mon, 1 Apr 2013 09:57:25 +0000 (11:57 +0200)]
broaden the effect of in-closure def node call inlining

11 years agoNaive approach to fix memview incref/decref asymmetry in transpose
Matěj Laitl [Sat, 30 Mar 2013 16:13:47 +0000 (17:13 +0100)]
Naive approach to fix memview incref/decref asymmetry in transpose

This patch contains test-case along with a blind patch that fixes the test (but
may have other consequences, someone who actually understands the code must
review it).

Original error was:
Fatal Python error: Acquisition count is 0 (line XYZ)

which was caused by refcount error when memview transposition was used on
extension class memoryview attribute.

11 years agoprevent tp_new() optimisation from breaking external types with known typeobj
Stefan Behnel [Fri, 29 Mar 2013 20:21:14 +0000 (21:21 +0100)]
prevent tp_new() optimisation from breaking external types with known typeobj

11 years agoremove unused test code
Stefan Behnel [Fri, 29 Mar 2013 18:11:44 +0000 (19:11 +0100)]
remove unused test code

11 years agofix doctest
Stefan Behnel [Fri, 29 Mar 2013 17:52:49 +0000 (18:52 +0100)]
fix doctest

11 years agoimplement __annotations__ attribute on CyFunction (PEP 3107)
Stefan Behnel [Fri, 29 Mar 2013 17:40:22 +0000 (18:40 +0100)]
implement __annotations__ attribute on CyFunction (PEP 3107)

11 years agoimplement __kwdefaults__ for CyFunction
Stefan Behnel [Fri, 29 Mar 2013 16:09:58 +0000 (17:09 +0100)]
implement __kwdefaults__ for CyFunction

11 years agoMerge pull request #200 from nnemkin/module_level_literal_arrays
Robert Bradshaw [Fri, 29 Mar 2013 10:00:27 +0000 (03:00 -0700)]
Merge pull request #200 from nnemkin/module_level_literal_arrays

Allow module-level literal lists (Fixes #113).

11 years agoAllow module-level literal lists (Fixes #113).
Nikita Nemkin [Thu, 28 Mar 2013 11:11:10 +0000 (17:11 +0600)]
Allow module-level literal lists (Fixes #113).

11 years agoConst temp regression test.
Robert Bradshaw [Tue, 26 Mar 2013 06:38:07 +0000 (23:38 -0700)]
Const temp regression test.

11 years agoFix bug with infered const temp vars.
Robert Bradshaw [Tue, 26 Mar 2013 06:30:34 +0000 (23:30 -0700)]
Fix bug with infered const temp vars.

11 years agoMerge pull request #190 from sturlamolden/master
scoder [Fri, 22 Mar 2013 20:52:48 +0000 (13:52 -0700)]
Merge pull request #190 from sturlamolden/master

Enable GCC atomic builtins on MinGW, disable on i386 target

11 years agoFlush at the end of cythonize().
Robert Bradshaw [Tue, 19 Mar 2013 17:29:22 +0000 (10:29 -0700)]
Flush at the end of cythonize().

11 years agoMerge pull request #199 from nnemkin/compile_time_strings_fix
scoder [Tue, 19 Mar 2013 14:34:13 +0000 (07:34 -0700)]
Merge pull request #199 from nnemkin/compile_time_strings_fix

Correctly handle compile-time strings appearing in Python context.