cython.git
14 years agotests for inc/dec and deref
Robert Bradshaw [Thu, 14 Jan 2010 23:41:41 +0000 (15:41 -0800)]
tests for inc/dec and deref

14 years agoSupport increment/decrement via Cython special methods. (May not be +/-1 for C++.)
Robert Bradshaw [Thu, 14 Jan 2010 23:40:39 +0000 (15:40 -0800)]
Support increment/decrement via Cython special methods. (May not be +/-1 for C++.)

14 years agoDereference node.
Robert Bradshaw [Thu, 14 Jan 2010 23:09:41 +0000 (15:09 -0800)]
Dereference node.

14 years agoGeneralize unop cython special methods.
Robert Bradshaw [Thu, 14 Jan 2010 23:05:11 +0000 (15:05 -0800)]
Generalize unop cython special methods.

14 years agoSome reference type refinements.
Robert Bradshaw [Thu, 14 Jan 2010 22:30:29 +0000 (14:30 -0800)]
Some reference type refinements.

14 years agore-fix failing tests
Robert Bradshaw [Thu, 14 Jan 2010 22:00:26 +0000 (14:00 -0800)]
re-fix failing tests

14 years agoFixing best match removing ambiguity with pointer and reference
daniloaf@daniloaf-PC [Fri, 18 Dec 2009 07:26:19 +0000 (04:26 -0300)]
Fixing best match removing ambiguity with pointer and reference

14 years agocleanup relative to 0.12
Robert Bradshaw [Tue, 15 Dec 2009 13:03:44 +0000 (05:03 -0800)]
cleanup relative to 0.12

14 years agomerge fallout
Robert Bradshaw [Tue, 15 Dec 2009 12:27:40 +0000 (04:27 -0800)]
merge fallout

14 years agobig C++ mergeback
Robert Bradshaw [Tue, 15 Dec 2009 11:54:36 +0000 (03:54 -0800)]
big C++ mergeback

14 years agomerge
Robert Bradshaw [Tue, 15 Dec 2009 11:07:58 +0000 (03:07 -0800)]
merge

14 years agoWork on C++ operators
Robert Bradshaw [Tue, 15 Dec 2009 10:58:18 +0000 (02:58 -0800)]
Work on C++ operators

14 years agoUse C++ style constructor declarations rather than __init__.
Robert Bradshaw [Tue, 15 Dec 2009 10:36:32 +0000 (02:36 -0800)]
Use C++ style constructor declarations rather than __init__.

14 years agoFix cpp test running.
Robert Bradshaw [Tue, 15 Dec 2009 10:17:23 +0000 (02:17 -0800)]
Fix cpp test running.

14 years agoC++ parsing simplification, cleanup
Robert Bradshaw [Tue, 15 Dec 2009 10:13:38 +0000 (02:13 -0800)]
C++ parsing simplification, cleanup

14 years agoOverloaded functions with reference
daniloaf@daniloaf-PC [Tue, 15 Dec 2009 03:08:56 +0000 (00:08 -0300)]
Overloaded functions with reference

14 years agoC++ cleanup.
Robert Bradshaw [Tue, 15 Dec 2009 02:21:13 +0000 (18:21 -0800)]
C++ cleanup.

14 years agoC++ check code
Robert Bradshaw [Tue, 15 Dec 2009 01:59:49 +0000 (17:59 -0800)]
C++ check code

14 years agoStreamline writing module-level compatability macros.
Robert Bradshaw [Sat, 12 Dec 2009 06:11:44 +0000 (22:11 -0800)]
Streamline writing module-level compatability macros.

14 years agoWarning for extern type import size mismatch.
Robert Bradshaw [Sat, 12 Dec 2009 05:54:46 +0000 (21:54 -0800)]
Warning for extern type import size mismatch.

14 years agofix crash when calling non-trivial type constructors
Stefan Behnel [Fri, 11 Dec 2009 14:46:18 +0000 (15:46 +0100)]
fix crash when calling non-trivial type constructors

14 years agorenamed test case
Stefan Behnel [Fri, 11 Dec 2009 13:49:18 +0000 (14:49 +0100)]
renamed test case

--HG--
rename : tests/run/extended_unpacking_T466.pyx => tests/run/cascaded_typed_assignments_T466.pyx

14 years agocleanup
Stefan Behnel [Fri, 11 Dec 2009 13:26:21 +0000 (14:26 +0100)]
cleanup

14 years agofix #466: make sure ConstNode.coerce_to() always returns a new node (required to...
Stefan Behnel [Fri, 11 Dec 2009 13:15:35 +0000 (14:15 +0100)]
fix #466: make sure ConstNode.coerce_to() always returns a new node (required to support CloneNodes in cascading assignments to differently typed targets)

14 years agocomment
Stefan Behnel [Wed, 9 Dec 2009 15:59:37 +0000 (16:59 +0100)]
comment

14 years agocomment
Stefan Behnel [Wed, 9 Dec 2009 15:43:31 +0000 (16:43 +0100)]
comment

14 years agocall Py_TYPE(x) instead of type(x)
Stefan Behnel [Wed, 9 Dec 2009 15:43:17 +0000 (16:43 +0100)]
call Py_TYPE(x) instead of type(x)

14 years agotest case for ticket #466
Stefan Behnel [Wed, 9 Dec 2009 12:20:13 +0000 (13:20 +0100)]
test case for ticket #466

14 years agomerge
Stefan Behnel [Wed, 9 Dec 2009 09:34:31 +0000 (10:34 +0100)]
merge

14 years agocleanup
Stefan Behnel [Wed, 9 Dec 2009 09:32:39 +0000 (10:32 +0100)]
cleanup

14 years agocleanup
Stefan Behnel [Wed, 9 Dec 2009 08:58:14 +0000 (09:58 +0100)]
cleanup

14 years agospeed up tree visitor somewhat by moving code out of the critical methods
Stefan Behnel [Wed, 9 Dec 2009 08:31:18 +0000 (09:31 +0100)]
speed up tree visitor somewhat by moving code out of the critical methods

14 years agofix getattr() optimisation
Stefan Behnel [Wed, 9 Dec 2009 08:18:04 +0000 (09:18 +0100)]
fix getattr() optimisation

14 years agoBad type error message tweak.
Robert Bradshaw [Wed, 9 Dec 2009 07:27:21 +0000 (23:27 -0800)]
Bad type error message tweak.

14 years agoBetter error message on bad type cimport.
Robert Bradshaw [Wed, 9 Dec 2009 07:16:06 +0000 (23:16 -0800)]
Better error message on bad type cimport.

14 years agoLess strict type checking on non-subclassed extern types.
Robert Bradshaw [Wed, 9 Dec 2009 07:10:36 +0000 (23:10 -0800)]
Less strict type checking on non-subclassed extern types.

14 years agoList/tuple boundscheck test.
Robert Bradshaw [Wed, 9 Dec 2009 06:21:37 +0000 (22:21 -0800)]
List/tuple boundscheck test.

14 years agoUse boundscheck directive for lists/tuples.
Robert Bradshaw [Wed, 9 Dec 2009 06:21:01 +0000 (22:21 -0800)]
Use boundscheck directive for lists/tuples.

14 years agouse True/None/False as infer_types() option values, make 'bint' type inference safe...
Stefan Behnel [Tue, 8 Dec 2009 12:23:55 +0000 (13:23 +0100)]
use True/None/False as infer_types() option values, make 'bint' type inference safe in safe mode

14 years agotest fix
Stefan Behnel [Tue, 8 Dec 2009 10:36:19 +0000 (11:36 +0100)]
test fix

14 years agofix type check condition in double cooercion
Stefan Behnel [Tue, 8 Dec 2009 09:45:06 +0000 (10:45 +0100)]
fix type check condition in double cooercion

14 years agospecialised implementation for 'float(x) -> C double' to avoid redundant calls of...
Stefan Behnel [Tue, 8 Dec 2009 00:26:53 +0000 (01:26 +0100)]
specialised implementation for 'float(x) -> C double' to avoid redundant calls of float()

14 years agotranslate Python float calculations into C doubles
Stefan Behnel [Tue, 8 Dec 2009 00:05:01 +0000 (01:05 +0100)]
translate Python float calculations into C doubles

14 years agosplit builtin type call optimisations into pre and post type analysis phase
Stefan Behnel [Mon, 7 Dec 2009 23:59:22 +0000 (00:59 +0100)]
split builtin type call optimisations into pre and post type analysis phase

14 years agocleanup, use -1 as exception value for double conversion
Stefan Behnel [Mon, 7 Dec 2009 23:40:56 +0000 (00:40 +0100)]
cleanup, use -1 as exception value for double conversion

14 years agoset()/frozenset() also return their own instance
Stefan Behnel [Sun, 6 Dec 2009 22:31:20 +0000 (23:31 +0100)]
set()/frozenset() also return their own instance

14 years agoenable type inference in safe mode also for 'bint'
Stefan Behnel [Sun, 6 Dec 2009 22:30:46 +0000 (23:30 +0100)]
enable type inference in safe mode also for 'bint'

14 years agosafety fixes for tests under type inference
Stefan Behnel [Sun, 6 Dec 2009 22:27:49 +0000 (23:27 +0100)]
safety fixes for tests under type inference

14 years agocleanup
Stefan Behnel [Sun, 6 Dec 2009 21:58:23 +0000 (22:58 +0100)]
cleanup

14 years agocleanup
Stefan Behnel [Sun, 6 Dec 2009 21:51:09 +0000 (22:51 +0100)]
cleanup

14 years agotest fix: work around the fact that list comp variables now appear in locals()
Stefan Behnel [Sun, 6 Dec 2009 13:52:52 +0000 (14:52 +0100)]
test fix: work around the fact that list comp variables now appear in locals()

14 years agotest cleanup
Stefan Behnel [Sun, 6 Dec 2009 13:50:02 +0000 (14:50 +0100)]
test cleanup

14 years agofix node type of EvalWithTempExprNode (when created after type analysis)
Stefan Behnel [Sun, 6 Dec 2009 13:49:36 +0000 (14:49 +0100)]
fix node type of EvalWithTempExprNode (when created after type analysis)

14 years agofix declaration analysis (and type inference) for comprehensions
Stefan Behnel [Sun, 6 Dec 2009 13:29:05 +0000 (14:29 +0100)]
fix declaration analysis (and type inference) for comprehensions

14 years agomake bint distinguishable from int in debug output
Stefan Behnel [Sun, 6 Dec 2009 12:13:03 +0000 (13:13 +0100)]
make bint distinguishable from int in debug output

14 years agoenable full type inference in compiled parser
Stefan Behnel [Sun, 6 Dec 2009 11:52:07 +0000 (12:52 +0100)]
enable full type inference in compiled parser

14 years agokeep ignoring unknown directives in directive comments
Stefan Behnel [Sun, 6 Dec 2009 11:04:41 +0000 (12:04 +0100)]
keep ignoring unknown directives in directive comments

14 years agosupport non-bool options and multiple options as compiler comment directives
Stefan Behnel [Sun, 6 Dec 2009 10:55:19 +0000 (11:55 +0100)]
support non-bool options and multiple options as compiler comment directives

14 years agosupport charptr.decode() with non-literal encodings and fix some temp usage issues...
Stefan Behnel [Sun, 6 Dec 2009 10:22:59 +0000 (11:22 +0100)]
support charptr.decode() with non-literal encodings and fix some temp usage issues; test case split

--HG--
rename : tests/run/carray_slicing.pyx => tests/run/charptr_decode.pyx

14 years agoextended test case
Stefan Behnel [Sat, 5 Dec 2009 23:32:09 +0000 (00:32 +0100)]
extended test case

14 years ago'type inference' for special temp nodes
Stefan Behnel [Sat, 5 Dec 2009 23:09:54 +0000 (00:09 +0100)]
'type inference' for special temp nodes

14 years agoinfer types of special args/kwargs parameters
Stefan Behnel [Sat, 5 Dec 2009 23:04:50 +0000 (00:04 +0100)]
infer types of special args/kwargs parameters

14 years agominor refactoring; fix handling first argument in classmethods; fix ticket #462:...
Stefan Behnel [Sat, 5 Dec 2009 22:39:57 +0000 (23:39 +0100)]
minor refactoring; fix handling first argument in classmethods; fix ticket #462: allow method(*args) in cdef classes

14 years agocomment
Stefan Behnel [Sat, 5 Dec 2009 22:35:44 +0000 (23:35 +0100)]
comment

14 years agocomment
Stefan Behnel [Sat, 5 Dec 2009 16:39:14 +0000 (17:39 +0100)]
comment

14 years agofix #463: TypeofNode crashes when typeof() is called on expressions
Stefan Behnel [Sat, 5 Dec 2009 16:37:05 +0000 (17:37 +0100)]
fix #463: TypeofNode crashes when typeof() is called on expressions

14 years agofix copy+paste error messages
Stefan Behnel [Sat, 5 Dec 2009 16:25:17 +0000 (17:25 +0100)]
fix copy+paste error messages

14 years agotest case for ticket #462
Stefan Behnel [Sat, 5 Dec 2009 13:26:15 +0000 (14:26 +0100)]
test case for ticket #462

14 years agodiscount one to min pos args for classmethod (complementary fix for #454)
Lisandro Dalcin [Sat, 5 Dec 2009 00:44:45 +0000 (21:44 -0300)]
discount one to min pos args for classmethod (complementary fix for #454)

14 years agotest fixes
Stefan Behnel [Fri, 4 Dec 2009 14:23:23 +0000 (15:23 +0100)]
test fixes

14 years agotest case for dotted attribute names, some cleanup
Stefan Behnel [Fri, 4 Dec 2009 13:19:32 +0000 (14:19 +0100)]
test case for dotted attribute names, some cleanup

14 years agosimple test case for safe double inference
Stefan Behnel [Fri, 4 Dec 2009 13:04:20 +0000 (14:04 +0100)]
simple test case for safe double inference

14 years agosupport dotted attributes in TreePath
Stefan Behnel [Fri, 4 Dec 2009 12:59:24 +0000 (13:59 +0100)]
support dotted attributes in TreePath

14 years agoreverted accidental left-over in last commit
Stefan Behnel [Fri, 4 Dec 2009 11:09:09 +0000 (12:09 +0100)]
reverted accidental left-over in last commit

14 years agosafety fix for ticket 461: prevent imported extension types from becoming spanning...
Stefan Behnel [Fri, 4 Dec 2009 11:08:14 +0000 (12:08 +0100)]
safety fix for ticket 461: prevent imported extension types from becoming spanning types - use PyObject instead

14 years agoextended test case
Stefan Behnel [Fri, 4 Dec 2009 10:21:56 +0000 (11:21 +0100)]
extended test case

14 years agotype inference for builtin/extension types
Stefan Behnel [Fri, 4 Dec 2009 10:15:00 +0000 (11:15 +0100)]
type inference for builtin/extension types

14 years agoPy3 test fixes
Stefan Behnel [Fri, 4 Dec 2009 08:32:56 +0000 (09:32 +0100)]
Py3 test fixes

14 years agofix compiler crashes on unknown functions
Stefan Behnel [Fri, 4 Dec 2009 06:45:15 +0000 (07:45 +0100)]
fix compiler crashes on unknown functions

14 years agofix test case when safe type inference is enabled
Stefan Behnel [Fri, 4 Dec 2009 06:25:03 +0000 (07:25 +0100)]
fix test case when safe type inference is enabled

14 years agotype inference for SliceIndexNode
Stefan Behnel [Fri, 4 Dec 2009 06:24:49 +0000 (07:24 +0100)]
type inference for SliceIndexNode

14 years agoforgotten commit: make sure we only infer types if type inference is enabled
Stefan Behnel [Fri, 4 Dec 2009 05:40:18 +0000 (06:40 +0100)]
forgotten commit: make sure we only infer types if type inference is enabled

14 years ago'safe' mode for type inference: only infer types that are very unlikely to break...
Stefan Behnel [Fri, 4 Dec 2009 05:39:07 +0000 (06:39 +0100)]
'safe' mode for type inference: only infer types that are very unlikely to break code

14 years agoinfer builtin/extension types from type constructors
Stefan Behnel [Fri, 4 Dec 2009 05:36:17 +0000 (06:36 +0100)]
infer builtin/extension types from type constructors

14 years agolist of builtin types that are known to always return an instance of themselves
Stefan Behnel [Fri, 4 Dec 2009 05:35:05 +0000 (06:35 +0100)]
list of builtin types that are known to always return an instance of themselves

14 years agomore explicit method to check if a type can coerce to a Python object
Stefan Behnel [Thu, 3 Dec 2009 14:05:01 +0000 (15:05 +0100)]
more explicit method to check if a type can coerce to a Python object

14 years agofix test case
Stefan Behnel [Thu, 3 Dec 2009 12:48:51 +0000 (13:48 +0100)]
fix test case

14 years agoemulate original error for attributes on unconvertible types
Stefan Behnel [Thu, 3 Dec 2009 12:48:49 +0000 (13:48 +0100)]
emulate original error for attributes on unconvertible types

14 years agocleanup
Stefan Behnel [Thu, 3 Dec 2009 12:27:05 +0000 (13:27 +0100)]
cleanup

14 years agotypo in new test case
Stefan Behnel [Thu, 3 Dec 2009 12:23:21 +0000 (13:23 +0100)]
typo in new test case

14 years agotest for ticket 236
Stefan Behnel [Thu, 3 Dec 2009 12:21:00 +0000 (13:21 +0100)]
test for ticket 236

14 years agoenable Python methods on C types through coercion to Python objects
Stefan Behnel [Thu, 3 Dec 2009 12:17:39 +0000 (13:17 +0100)]
enable Python methods on C types through coercion to Python objects

14 years agosupport "c_string.decode(enc)" and "c_string[x:].decode(enc)" efficiently
Stefan Behnel [Sat, 28 Nov 2009 13:23:04 +0000 (14:23 +0100)]
support "c_string.decode(enc)" and "c_string[x:].decode(enc)" efficiently

14 years agolet char*->bytes conversion know that it returns bytes
Stefan Behnel [Sat, 28 Nov 2009 08:10:25 +0000 (09:10 +0100)]
let char*->bytes conversion know that it returns bytes

14 years agofix recursive use of LetNodeMixin
Stefan Behnel [Sat, 28 Nov 2009 08:05:53 +0000 (09:05 +0100)]
fix recursive use of LetNodeMixin

14 years agoPy3 test fix
Stefan Behnel [Fri, 27 Nov 2009 20:28:17 +0000 (21:28 +0100)]
Py3 test fix

14 years agomerge
Stefan Behnel [Fri, 27 Nov 2009 20:17:40 +0000 (21:17 +0100)]
merge

14 years agoTests for #258.
Robert Bradshaw [Fri, 27 Nov 2009 20:08:09 +0000 (12:08 -0800)]
Tests for #258.

14 years agoFix #258, extern builtin conflicts.
Robert Bradshaw [Fri, 27 Nov 2009 20:07:01 +0000 (12:07 -0800)]
Fix #258, extern builtin conflicts.

14 years agoFix typo.
Robert Bradshaw [Fri, 27 Nov 2009 19:07:59 +0000 (11:07 -0800)]
Fix typo.

(My fault applying patch.)