Stefan Behnel [Sun, 29 Mar 2009 11:27:55 +0000 (13:27 +0200)]
general optimisation support for calls to builtin types and their methods
currently providing optimisations for
- getattr(o,a)
- getattr(o,a,d)
- X.append(o)
- L.append(o)
- list.append(L,x)
Stefan Behnel [Sun, 29 Mar 2009 10:24:01 +0000 (12:24 +0200)]
make import explicit (would be better to avoid the star imports, though)
Dag Sverre Seljebotn [Sat, 28 Mar 2009 14:39:26 +0000 (15:39 +0100)]
More easy ones to new temps
Dag Sverre Seljebotn [Sat, 28 Mar 2009 14:09:02 +0000 (15:09 +0100)]
Debug flag to not intercept pipeline exceptions
Dag Sverre Seljebotn [Sat, 28 Mar 2009 14:07:20 +0000 (15:07 +0100)]
DictNode, newtemps and so on
Dag Sverre Seljebotn [Sat, 28 Mar 2009 13:57:19 +0000 (14:57 +0100)]
Remove unused reference to result() in analysis
Dag Sverre Seljebotn [Sat, 28 Mar 2009 11:38:21 +0000 (12:38 +0100)]
ClassNode to new temps
Dag Sverre Seljebotn [Sat, 28 Mar 2009 09:20:58 +0000 (10:20 +0100)]
Some trivial nodes to new temps
Dag Sverre Seljebotn [Fri, 27 Mar 2009 13:37:43 +0000 (14:37 +0100)]
NameNode to new temps
Robert Bradshaw [Thu, 26 Mar 2009 04:35:24 +0000 (21:35 -0700)]
merge
Robert Bradshaw [Thu, 26 Mar 2009 04:34:19 +0000 (21:34 -0700)]
merge in latest cython-devel
Robert Bradshaw [Thu, 26 Mar 2009 03:55:14 +0000 (20:55 -0700)]
merge
Robert Bradshaw [Thu, 26 Mar 2009 03:38:19 +0000 (20:38 -0700)]
cython.cdiv and cython.cmod for CEP 516
Robert Bradshaw [Thu, 26 Mar 2009 02:10:09 +0000 (19:10 -0700)]
cdivision pragma as specified for CEP 516
Robert Bradshaw [Thu, 26 Mar 2009 01:58:53 +0000 (18:58 -0700)]
Tests for c division CEP 516
Robert Bradshaw [Thu, 26 Mar 2009 01:25:51 +0000 (18:25 -0700)]
More utility code specialization.
Stefan Behnel [Wed, 25 Mar 2009 23:06:52 +0000 (00:06 +0100)]
merged in latest cython-devel
Stefan Behnel [Wed, 25 Mar 2009 22:55:54 +0000 (23:55 +0100)]
merge
Robert Bradshaw [Wed, 25 Mar 2009 22:54:27 +0000 (15:54 -0700)]
Warning, not error, on builting type redeclaration.
Throwing an error is to invasive for 0.11.x, and also one needs to be able to subclass/access attributes of builtin types before we get rid of the declaration altogether.
Robert Bradshaw [Wed, 25 Mar 2009 22:46:35 +0000 (15:46 -0700)]
Don't have complex as a builtin type (otherwise, can't access its attributes).
Robert Bradshaw [Wed, 25 Mar 2009 22:26:42 +0000 (15:26 -0700)]
merge
Robert Bradshaw [Wed, 25 Mar 2009 22:23:46 +0000 (15:23 -0700)]
better error when user-declared type conflicts with builtin type (#170)
Robert Bradshaw [Wed, 25 Mar 2009 22:00:06 +0000 (15:00 -0700)]
Fix bad self argument crash in cpdef methods (#165)
--HG--
rename : tests/bugs/missing_self_in_cpdef_method_T165.pyx => tests/errors/missing_self_in_cpdef_method_T165.pyx
Robert Bradshaw [Wed, 25 Mar 2009 21:28:06 +0000 (14:28 -0700)]
merge
Robert Bradshaw [Wed, 25 Mar 2009 21:23:29 +0000 (14:23 -0700)]
Fix for #253
Robert Bradshaw [Wed, 25 Mar 2009 21:20:22 +0000 (14:20 -0700)]
Tests for floating point for..from steps (#254)
Stefan Behnel [Wed, 25 Mar 2009 21:12:30 +0000 (22:12 +0100)]
merge
Stefan Behnel [Wed, 25 Mar 2009 20:59:00 +0000 (21:59 +0100)]
prevent duplicated calls to analyse_default_values() for cpdef functions
Stefan Behnel [Wed, 25 Mar 2009 20:15:26 +0000 (21:15 +0100)]
cleanup
Robert Bradshaw [Wed, 25 Mar 2009 20:05:22 +0000 (13:05 -0700)]
Fix py target for-from loop.
Stefan Behnel [Wed, 25 Mar 2009 18:58:13 +0000 (19:58 +0100)]
merge
Stefan Behnel [Wed, 25 Mar 2009 18:41:53 +0000 (19:41 +0100)]
extended error test cases
Robert Bradshaw [Wed, 25 Mar 2009 12:37:19 +0000 (05:37 -0700)]
loop cleanup, comment
Robert Bradshaw [Wed, 25 Mar 2009 12:33:58 +0000 (05:33 -0700)]
fix a loop test
Robert Bradshaw [Wed, 25 Mar 2009 12:28:20 +0000 (05:28 -0700)]
fix most loop tests
Robert Bradshaw [Wed, 25 Mar 2009 11:17:25 +0000 (04:17 -0700)]
loop semantics are STILL wrong, as were some T203 doctests
Kurt Smith [Tue, 24 Mar 2009 01:23:38 +0000 (20:23 -0500)]
Added test case for ticket 135 in tests/bugs.
Stefan Behnel [Wed, 25 Mar 2009 16:00:02 +0000 (17:00 +0100)]
cleanup last commit
Stefan Behnel [Wed, 25 Mar 2009 15:26:59 +0000 (16:26 +0100)]
move optimisation for empty except-blocks to code generation time instead of type analysis
Stefan Behnel [Wed, 25 Mar 2009 15:24:48 +0000 (16:24 +0100)]
enable temp allocation debug comments in test runner
Stefan Behnel [Mon, 23 Mar 2009 13:28:38 +0000 (14:28 +0100)]
test for constant folding on character literals
Stefan Behnel [Mon, 23 Mar 2009 13:27:28 +0000 (14:27 +0100)]
enabled now working bug test
--HG--
rename : tests/bugs/large_consts_T237.pyx => tests/run/large_consts_T237.pyx
Stefan Behnel [Mon, 23 Mar 2009 10:56:04 +0000 (11:56 +0100)]
moved constant folding before type analysis, disabled for type casts and float expressions
Stefan Behnel [Sun, 22 Mar 2009 18:49:00 +0000 (19:49 +0100)]
generate shorter code for empty except blocks (ticket #251)
Stefan Behnel [Sun, 22 Mar 2009 18:49:00 +0000 (19:49 +0100)]
generate shorter code for empty except blocks (ticket #251)
Stefan Behnel [Sun, 22 Mar 2009 16:55:30 +0000 (17:55 +0100)]
extended test cases to check for exception __context__ in Py3
Stefan Behnel [Fri, 20 Mar 2009 21:01:35 +0000 (22:01 +0100)]
merged in latest cython-devel
Stefan Behnel [Fri, 20 Mar 2009 16:51:46 +0000 (17:51 +0100)]
patch cleanup and test fix (avoid uninitialised variable)
--HG--
rename : tests/bugs/rangeOptimization_T203.pyx => tests/run/range_optimisation_T203.pyx
Stefan Behnel [Fri, 20 Mar 2009 16:36:35 +0000 (17:36 +0100)]
patch for ticket 203 by Prajwal Suhas P
Stefan Behnel [Fri, 20 Mar 2009 14:30:09 +0000 (15:30 +0100)]
fix struct auto-typedef-ing
Stefan Behnel [Fri, 20 Mar 2009 14:11:00 +0000 (15:11 +0100)]
minor cleanup
Stefan Behnel [Fri, 20 Mar 2009 13:15:17 +0000 (14:15 +0100)]
fix test case
Stefan Behnel [Fri, 20 Mar 2009 12:29:35 +0000 (13:29 +0100)]
major cleanup, move argument default value caching to code generation phase
Stefan Behnel [Thu, 19 Mar 2009 21:45:34 +0000 (22:45 +0100)]
merge
Robert Bradshaw [Thu, 19 Mar 2009 18:58:58 +0000 (11:58 -0700)]
Trac #247, better error reporting when Python.h not found.
Stefan Behnel [Thu, 19 Mar 2009 16:02:07 +0000 (17:02 +0100)]
use an explicit way to ask for a non-calculated constant result code during analysis
Stefan Behnel [Thu, 19 Mar 2009 15:45:48 +0000 (16:45 +0100)]
minor cleanups
Stefan Behnel [Thu, 19 Mar 2009 12:11:02 +0000 (13:11 +0100)]
merged in latest cython-devel
Stefan Behnel [Thu, 19 Mar 2009 12:00:56 +0000 (13:00 +0100)]
moved working bug test case
--HG--
rename : tests/bugs/char_constants_T99.pyx => tests/run/char_constants_T99.pyx
Stefan Behnel [Thu, 19 Mar 2009 10:35:54 +0000 (11:35 +0100)]
minor cleanup of thread-init code
Stefan Behnel [Thu, 19 Mar 2009 10:22:02 +0000 (11:22 +0100)]
fix keyword arguments in extension type calls
Stefan Behnel [Thu, 19 Mar 2009 09:50:40 +0000 (10:50 +0100)]
thread initialisation when using with gil/nogil (by Lisandro)
Nicolas Dumazet [Thu, 19 Mar 2009 09:01:59 +0000 (18:01 +0900)]
Spam.amount attribute has to be declared.
Robert Bradshaw [Thu, 19 Mar 2009 06:14:59 +0000 (23:14 -0700)]
More unpickling error catching.
Stefan Behnel [Wed, 18 Mar 2009 20:44:34 +0000 (21:44 +0100)]
almost complete refactoring of constant allocation to move it into the code generation phase
Hoyt Koepke hoytak@gmail.com [Tue, 17 Mar 2009 03:10:14 +0000 (20:10 -0700)]
Made lexicon unpickling more robust; on error it regenerates it.
Robert Bradshaw [Thu, 19 Mar 2009 05:48:13 +0000 (22:48 -0700)]
Ticket #241, better error for keywords in cdef functions.
Dag Sverre Seljebotn [Tue, 17 Mar 2009 06:32:51 +0000 (07:32 +0100)]
#158: Small change to error message
Kurt Smith [Tue, 17 Mar 2009 05:02:46 +0000 (00:02 -0500)]
Bug 158 -- raise error if cdef variable declared after it's used.
Stefan Behnel [Mon, 16 Mar 2009 20:33:46 +0000 (21:33 +0100)]
test case for ticket 232 (without __new__ support)
Stefan Behnel [Mon, 16 Mar 2009 20:26:44 +0000 (21:26 +0100)]
moved working bug test case to tests/run/
--HG--
rename : tests/bugs/empty_for_loop_T208.pyx => tests/run/empty_for_loop_T208.pyx
Stefan Behnel [Mon, 16 Mar 2009 20:09:16 +0000 (21:09 +0100)]
test for ticket 237
Stefan Behnel [Sun, 15 Mar 2009 18:34:39 +0000 (19:34 +0100)]
refactored GIL checking into separate transform (ticket #205)
Stefan Behnel [Sun, 15 Mar 2009 14:42:40 +0000 (15:42 +0100)]
print node position in PrintTree
Stefan Behnel [Sun, 15 Mar 2009 08:02:40 +0000 (09:02 +0100)]
make code generation tracing an official debug feature, disable all debug features by default
Stefan Behnel [Sun, 15 Mar 2009 08:01:32 +0000 (09:01 +0100)]
fix test case
Robert Bradshaw [Sun, 15 Mar 2009 05:45:55 +0000 (22:45 -0700)]
Fix #156, missing self in cpdef method.
--HG--
rename : tests/bugs/missing_self_in_cpdef_method_T156.pyx => tests/errors/missing_self_in_cpdef_method_T156.pyx
Magnus Lie Hetland [Sun, 8 Feb 2009 11:49:15 +0000 (12:49 +0100)]
Added if around for loop (for issue 208)
Robert Bradshaw [Sun, 15 Mar 2009 05:13:11 +0000 (22:13 -0700)]
int powering tests
Robert Bradshaw [Sun, 15 Mar 2009 05:10:46 +0000 (22:10 -0700)]
pow operator on ints
Robert Bradshaw [Sun, 15 Mar 2009 04:42:28 +0000 (21:42 -0700)]
Templating utility code
Stefan Behnel [Sat, 14 Mar 2009 22:05:09 +0000 (23:05 +0100)]
merge
Stefan Behnel [Sat, 14 Mar 2009 22:04:35 +0000 (23:04 +0100)]
minor cythonisation and cleanup in Scanners.pxd
Stefan Behnel [Sat, 14 Mar 2009 22:03:06 +0000 (23:03 +0100)]
removed dead code
Robert Bradshaw [Sat, 14 Mar 2009 21:15:31 +0000 (14:15 -0700)]
Reduce code size for tuple unpacking.
Robert Bradshaw [Sat, 14 Mar 2009 20:47:25 +0000 (13:47 -0700)]
Fix changeset 1839, both typecasts are valid.
Stefan Behnel [Sat, 14 Mar 2009 17:12:20 +0000 (18:12 +0100)]
fix annotation of optimised switch statement
Stefan Behnel [Sat, 14 Mar 2009 11:05:58 +0000 (12:05 +0100)]
merge 0.11
Robert Bradshaw [Sat, 14 Mar 2009 06:01:14 +0000 (23:01 -0700)]
Bump version number to 0.11.
Stefan Behnel [Fri, 13 Mar 2009 22:42:09 +0000 (23:42 +0100)]
ticket #186: generate more efficient code when tuple-unpacking a typed tuple
Stefan Behnel [Fri, 13 Mar 2009 22:24:36 +0000 (23:24 +0100)]
support interdependencies between utility code fragments
Stefan Behnel [Fri, 13 Mar 2009 12:45:28 +0000 (13:45 +0100)]
major cleanup to fix Py3 code issues (found by 2to3 and 'python2.6 -3')
Stefan Behnel [Fri, 13 Mar 2009 09:02:52 +0000 (10:02 +0100)]
use new-style classes everywhere to prevent unexpected obstacles in getting 2to3 clean
Stefan Behnel [Thu, 12 Mar 2009 19:24:28 +0000 (20:24 +0100)]
some more cythonisation in Plex scanner classes (15% faster for lxml)
Stefan Behnel [Thu, 12 Mar 2009 15:41:16 +0000 (16:41 +0100)]
cleanup: use new-style classes in PyrexTypes
Stefan Behnel [Wed, 11 Mar 2009 16:35:00 +0000 (17:35 +0100)]
merge
Stefan Behnel [Wed, 11 Mar 2009 16:34:43 +0000 (17:34 +0100)]
prevent parser syntax from allowing 'cdef cpdef ...'
Lisandro Dalcin [Wed, 11 Mar 2009 13:36:55 +0000 (11:36 -0200)]
fix typecast testcase, int and pointer have different sizes in 64 bits
Robert Bradshaw [Wed, 11 Mar 2009 11:47:40 +0000 (04:47 -0700)]
Release Candidate 3
Robert Bradshaw [Wed, 11 Mar 2009 11:46:53 +0000 (04:46 -0700)]
merge