Craig Citro [Mon, 1 Feb 2010 20:58:23 +0000 (12:58 -0800)]
Merge closure tests and fixes.
Craig Citro [Mon, 1 Feb 2010 20:28:45 +0000 (12:28 -0800)]
Add a bunch of new tests for closures.
Robert Bradshaw [Sun, 31 Jan 2010 11:45:27 +0000 (03:45 -0800)]
Method binding fix.
Robert Bradshaw [Sun, 31 Jan 2010 10:42:25 +0000 (02:42 -0800)]
Trac #478, tests for using closures as method decorators.
Robert Bradshaw [Sun, 31 Jan 2010 10:25:08 +0000 (02:25 -0800)]
Method binding tests for #494.
Robert Bradshaw [Sun, 31 Jan 2010 10:24:26 +0000 (02:24 -0800)]
Work towards #494, binding directive.
Robert Bradshaw [Sun, 31 Jan 2010 09:42:42 +0000 (01:42 -0800)]
Binding PyCFunction type.
This is a bit hackish, but creating a wrapper type would be as well, but
would also have a performance penalty.
Robert Bradshaw [Sun, 31 Jan 2010 06:16:44 +0000 (22:16 -0800)]
Cleanup filename listing.
Craig Citro [Fri, 29 Jan 2010 09:22:12 +0000 (01:22 -0800)]
Fix reference counting issues with new tests.
Stefan Behnel [Thu, 28 Jan 2010 22:27:58 +0000 (23:27 +0100)]
merged in latest cython-devel
Stefan Behnel [Thu, 28 Jan 2010 22:05:39 +0000 (23:05 +0100)]
support for some Python 3 (or 2.6+) syntax features (found by test_grammar.py in Py3.1.1):
- oct/bin notation: 0o12345,
0b10101
- function annotations (only pure syntax support, not currently used)
also: allow decorators on inner functions
Stefan Behnel [Thu, 28 Jan 2010 21:18:23 +0000 (22:18 +0100)]
fix undefined name
Stefan Behnel [Thu, 28 Jan 2010 20:42:59 +0000 (21:42 +0100)]
catch ArithmeticError during constant folding => not constant
Robert Bradshaw [Tue, 26 Jan 2010 18:38:36 +0000 (10:38 -0800)]
0.12.1.beta0
Robert Bradshaw [Tue, 26 Jan 2010 06:47:09 +0000 (22:47 -0800)]
INLINE -> CYTHON_INLINE to avoid conflicts
Stefan Behnel [Sun, 24 Jan 2010 15:47:16 +0000 (16:47 +0100)]
test case for #467
Stefan Behnel [Sun, 24 Jan 2010 15:35:14 +0000 (16:35 +0100)]
fix test after fixing #480
Stefan Behnel [Sun, 24 Jan 2010 15:29:01 +0000 (16:29 +0100)]
fix #480: float() as a type cast for function return values
Robert Bradshaw [Sun, 24 Jan 2010 11:26:18 +0000 (03:26 -0800)]
Testcase for #480.
Robert Bradshaw [Fri, 22 Jan 2010 19:27:07 +0000 (11:27 -0800)]
0.12.1.alpha0
Robert Bradshaw [Fri, 22 Jan 2010 06:31:20 +0000 (22:31 -0800)]
Library linking demo.
Robert Bradshaw [Fri, 22 Jan 2010 03:46:55 +0000 (19:46 -0800)]
Fix too many open files bug in testrunner.
It seems that temp file handles don't work well with fork.
Robert Bradshaw [Fri, 22 Jan 2010 00:41:28 +0000 (16:41 -0800)]
Verbose type inference directive.
Robert Bradshaw [Fri, 22 Jan 2010 00:23:13 +0000 (16:23 -0800)]
Warning for implicitly declared variables.
Robert Bradshaw [Fri, 22 Jan 2010 00:17:53 +0000 (16:17 -0800)]
#479, sub-directives via keywords
Robert Bradshaw [Thu, 21 Jan 2010 21:16:24 +0000 (13:16 -0800)]
solaris + gcc fix
Robert Bradshaw [Fri, 15 Jan 2010 05:06:13 +0000 (21:06 -0800)]
Complex define cleanup.
Robert Bradshaw [Thu, 14 Jan 2010 22:52:54 +0000 (14:52 -0800)]
More error message fixes.
Robert Bradshaw [Thu, 14 Jan 2010 22:49:09 +0000 (14:49 -0800)]
Typo in error messages.
Stefan Behnel [Thu, 14 Jan 2010 08:09:03 +0000 (09:09 +0100)]
looks like CPython can handle dict subtypes in kwargs calls
Stefan Behnel [Thu, 14 Jan 2010 08:05:08 +0000 (09:05 +0100)]
code simplification: rewrite of #470 implementation using a utility function
Stefan Behnel [Thu, 14 Jan 2010 07:36:13 +0000 (08:36 +0100)]
implement #470: non-dicts as **kwargs
Stefan Behnel [Thu, 14 Jan 2010 07:03:17 +0000 (08:03 +0100)]
Py2/3 portability fixes in test runner
Stefan Behnel [Wed, 13 Jan 2010 20:19:14 +0000 (21:19 +0100)]
support xrange() in Py3 by mapping it to range()
Robert Bradshaw [Sat, 9 Jan 2010 08:27:19 +0000 (00:27 -0800)]
Better indentation for profiling macros.
Robert Bradshaw [Sat, 9 Jan 2010 08:23:13 +0000 (00:23 -0800)]
Maybe fix #473 -- MSVC strict about variable declaration placement.
Robert Bradshaw [Fri, 8 Jan 2010 07:55:57 +0000 (23:55 -0800)]
Py3 fixes for embedded example.
Craig Citro [Thu, 7 Jan 2010 19:15:42 +0000 (11:15 -0800)]
Add Knuth's "man or boy" test.
Craig Citro [Thu, 7 Jan 2010 19:03:10 +0000 (11:03 -0800)]
Remove no-longer-invalid inner def test (se_conddef).
Craig Citro [Thu, 7 Jan 2010 18:59:59 +0000 (10:59 -0800)]
Fix parsing for allowing def statements only where legal.
Robert Bradshaw [Wed, 6 Jan 2010 19:05:39 +0000 (11:05 -0800)]
Use assignments, not (buggy) control flow, for arg incref decision.
Robert Bradshaw [Wed, 6 Jan 2010 18:46:32 +0000 (10:46 -0800)]
Arg increfing test.
Robert Bradshaw [Wed, 6 Jan 2010 18:45:13 +0000 (10:45 -0800)]
Merge 0.12 release.
Robert Bradshaw [Wed, 6 Jan 2010 18:35:35 +0000 (10:35 -0800)]
minor fix
Robert Bradshaw [Wed, 30 Dec 2009 09:57:12 +0000 (01:57 -0800)]
cleanup
Craig Citro [Wed, 30 Dec 2009 07:09:22 +0000 (23:09 -0800)]
Fix error in tree traversal in Nodes.py.
Stefan Behnel [Fri, 18 Dec 2009 07:45:19 +0000 (08:45 +0100)]
cleanups after removing Lexicon.pickle
Stefan Behnel [Fri, 18 Dec 2009 07:32:39 +0000 (08:32 +0100)]
remove legacy pickling of Lexicon.py
Lisandro Dalcin [Fri, 18 Dec 2009 00:46:03 +0000 (21:46 -0300)]
protect definition of INLINE and fix for MSVC (thanks to Julien Danjou)
Lisandro Dalcin [Thu, 17 Dec 2009 23:48:31 +0000 (20:48 -0300)]
remove old Pyrex code for calling a C compiler to build extension modules
Stefan Behnel [Thu, 17 Dec 2009 08:32:44 +0000 (09:32 +0100)]
added .pxd for legacy Python 2 buffer interface
Craig Citro [Wed, 16 Dec 2009 23:20:08 +0000 (15:20 -0800)]
Add changes to allow def statements anywhere they're legal.
Craig Citro [Thu, 7 Jan 2010 18:28:31 +0000 (10:28 -0800)]
initalized -> initialized
Dag Sverre Seljebotn [Mon, 14 Dec 2009 10:56:57 +0000 (11:56 +0100)]
Make tests fail gracefully on missing pstats module
--HG--
rename : tests/run/profile_test.pyx => tests/run/pstats_profile_test.pyx
Robert Bradshaw [Sat, 12 Dec 2009 06:11:44 +0000 (22:11 -0800)]
Streamline writing module-level compatability macros.
Robert Bradshaw [Sat, 12 Dec 2009 05:54:46 +0000 (21:54 -0800)]
Warning for extern type import size mismatch.
Stefan Behnel [Fri, 11 Dec 2009 14:46:18 +0000 (15:46 +0100)]
fix crash when calling non-trivial type constructors
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
Stefan Behnel [Fri, 11 Dec 2009 13:26:21 +0000 (14:26 +0100)]
cleanup
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)
Stefan Behnel [Wed, 9 Dec 2009 15:59:37 +0000 (16:59 +0100)]
comment
Stefan Behnel [Wed, 9 Dec 2009 15:43:31 +0000 (16:43 +0100)]
comment
Stefan Behnel [Wed, 9 Dec 2009 15:43:17 +0000 (16:43 +0100)]
call Py_TYPE(x) instead of type(x)
Stefan Behnel [Wed, 9 Dec 2009 12:20:13 +0000 (13:20 +0100)]
test case for ticket #466
Stefan Behnel [Wed, 9 Dec 2009 09:34:31 +0000 (10:34 +0100)]
merge
Stefan Behnel [Wed, 9 Dec 2009 09:32:39 +0000 (10:32 +0100)]
cleanup
Stefan Behnel [Wed, 9 Dec 2009 08:58:14 +0000 (09:58 +0100)]
cleanup
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
Stefan Behnel [Wed, 9 Dec 2009 08:18:04 +0000 (09:18 +0100)]
fix getattr() optimisation
Robert Bradshaw [Wed, 9 Dec 2009 07:27:21 +0000 (23:27 -0800)]
Bad type error message tweak.
Robert Bradshaw [Wed, 9 Dec 2009 07:16:06 +0000 (23:16 -0800)]
Better error message on bad type cimport.
Robert Bradshaw [Wed, 9 Dec 2009 07:10:36 +0000 (23:10 -0800)]
Less strict type checking on non-subclassed extern types.
Robert Bradshaw [Wed, 9 Dec 2009 06:21:37 +0000 (22:21 -0800)]
List/tuple boundscheck test.
Robert Bradshaw [Wed, 9 Dec 2009 06:21:01 +0000 (22:21 -0800)]
Use boundscheck directive for lists/tuples.
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
Stefan Behnel [Tue, 8 Dec 2009 10:36:19 +0000 (11:36 +0100)]
test fix
Stefan Behnel [Tue, 8 Dec 2009 09:45:06 +0000 (10:45 +0100)]
fix type check condition in double cooercion
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()
Stefan Behnel [Tue, 8 Dec 2009 00:05:01 +0000 (01:05 +0100)]
translate Python float calculations into C doubles
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
Stefan Behnel [Mon, 7 Dec 2009 23:40:56 +0000 (00:40 +0100)]
cleanup, use -1 as exception value for double conversion
Stefan Behnel [Sun, 6 Dec 2009 22:31:20 +0000 (23:31 +0100)]
set()/frozenset() also return their own instance
Stefan Behnel [Sun, 6 Dec 2009 22:30:46 +0000 (23:30 +0100)]
enable type inference in safe mode also for 'bint'
Stefan Behnel [Sun, 6 Dec 2009 22:27:49 +0000 (23:27 +0100)]
safety fixes for tests under type inference
Stefan Behnel [Sun, 6 Dec 2009 21:58:23 +0000 (22:58 +0100)]
cleanup
Stefan Behnel [Sun, 6 Dec 2009 21:51:09 +0000 (22:51 +0100)]
cleanup
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()
Stefan Behnel [Sun, 6 Dec 2009 13:50:02 +0000 (14:50 +0100)]
test cleanup
Stefan Behnel [Sun, 6 Dec 2009 13:49:36 +0000 (14:49 +0100)]
fix node type of EvalWithTempExprNode (when created after type analysis)
Stefan Behnel [Sun, 6 Dec 2009 13:29:05 +0000 (14:29 +0100)]
fix declaration analysis (and type inference) for comprehensions
Stefan Behnel [Sun, 6 Dec 2009 12:13:03 +0000 (13:13 +0100)]
make bint distinguishable from int in debug output
Stefan Behnel [Sun, 6 Dec 2009 11:52:07 +0000 (12:52 +0100)]
enable full type inference in compiled parser
Stefan Behnel [Sun, 6 Dec 2009 11:04:41 +0000 (12:04 +0100)]
keep ignoring unknown directives in directive comments
Stefan Behnel [Sun, 6 Dec 2009 10:55:19 +0000 (11:55 +0100)]
support non-bool options and multiple options as compiler comment directives
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
Stefan Behnel [Sat, 5 Dec 2009 23:32:09 +0000 (00:32 +0100)]
extended test case
Stefan Behnel [Sat, 5 Dec 2009 23:09:54 +0000 (00:09 +0100)]
'type inference' for special temp nodes
Stefan Behnel [Sat, 5 Dec 2009 23:04:50 +0000 (00:04 +0100)]
infer types of special args/kwargs parameters
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
Stefan Behnel [Sat, 5 Dec 2009 22:35:44 +0000 (23:35 +0100)]
comment