cython.git
15 years agoloop cleanup, comment
Robert Bradshaw [Wed, 25 Mar 2009 12:37:19 +0000 (05:37 -0700)]
loop cleanup, comment

15 years agofix a loop test
Robert Bradshaw [Wed, 25 Mar 2009 12:33:58 +0000 (05:33 -0700)]
fix a loop test

15 years agofix most loop tests
Robert Bradshaw [Wed, 25 Mar 2009 12:28:20 +0000 (05:28 -0700)]
fix most loop tests

15 years agoloop semantics are STILL wrong, as were some T203 doctests
Robert Bradshaw [Wed, 25 Mar 2009 11:17:25 +0000 (04:17 -0700)]
loop semantics are STILL wrong, as were some T203 doctests

15 years agotest for constant folding on character literals
Stefan Behnel [Mon, 23 Mar 2009 13:28:38 +0000 (14:28 +0100)]
test for constant folding on character literals

15 years agoenabled now working bug test
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

15 years agomoved constant folding before type analysis, disabled for type casts and float expres...
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

15 years agomerged in latest cython-devel
Stefan Behnel [Fri, 20 Mar 2009 21:01:35 +0000 (22:01 +0100)]
merged in latest cython-devel

15 years agopatch cleanup and test fix (avoid uninitialised variable)
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

15 years agopatch for ticket 203 by Prajwal Suhas P
Stefan Behnel [Fri, 20 Mar 2009 16:36:35 +0000 (17:36 +0100)]
patch for ticket 203 by Prajwal Suhas P

15 years agofix struct auto-typedef-ing
Stefan Behnel [Fri, 20 Mar 2009 14:30:09 +0000 (15:30 +0100)]
fix struct auto-typedef-ing

15 years agominor cleanup
Stefan Behnel [Fri, 20 Mar 2009 14:11:00 +0000 (15:11 +0100)]
minor cleanup

15 years agofix test case
Stefan Behnel [Fri, 20 Mar 2009 13:15:17 +0000 (14:15 +0100)]
fix test case

15 years agomajor cleanup, move argument default value caching to code generation phase
Stefan Behnel [Fri, 20 Mar 2009 12:29:35 +0000 (13:29 +0100)]
major cleanup, move argument default value caching to code generation phase

15 years agomerge
Stefan Behnel [Thu, 19 Mar 2009 21:45:34 +0000 (22:45 +0100)]
merge

15 years agoTrac #247, better error reporting when Python.h not found.
Robert Bradshaw [Thu, 19 Mar 2009 18:58:58 +0000 (11:58 -0700)]
Trac #247, better error reporting when Python.h not found.

15 years agouse an explicit way to ask for a non-calculated constant result code during analysis
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

15 years agominor cleanups
Stefan Behnel [Thu, 19 Mar 2009 15:45:48 +0000 (16:45 +0100)]
minor cleanups

15 years agomerged in latest cython-devel
Stefan Behnel [Thu, 19 Mar 2009 12:11:02 +0000 (13:11 +0100)]
merged in latest cython-devel

15 years agomoved working bug test case
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

15 years agominor cleanup of thread-init code
Stefan Behnel [Thu, 19 Mar 2009 10:35:54 +0000 (11:35 +0100)]
minor cleanup of thread-init code

15 years agofix keyword arguments in extension type calls
Stefan Behnel [Thu, 19 Mar 2009 10:22:02 +0000 (11:22 +0100)]
fix keyword arguments in extension type calls

15 years agothread initialisation when using with gil/nogil (by Lisandro)
Stefan Behnel [Thu, 19 Mar 2009 09:50:40 +0000 (10:50 +0100)]
thread initialisation when using with gil/nogil (by Lisandro)

15 years agoSpam.amount attribute has to be declared.
Nicolas Dumazet [Thu, 19 Mar 2009 09:01:59 +0000 (18:01 +0900)]
Spam.amount attribute has to be declared.

15 years agoMore unpickling error catching.
Robert Bradshaw [Thu, 19 Mar 2009 06:14:59 +0000 (23:14 -0700)]
More unpickling error catching.

15 years agoalmost complete refactoring of constant allocation to move it into the code generatio...
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

15 years agoMade lexicon unpickling more robust; on error it regenerates it.
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.

15 years agoTicket #241, better error for keywords in cdef functions.
Robert Bradshaw [Thu, 19 Mar 2009 05:48:13 +0000 (22:48 -0700)]
Ticket #241, better error for keywords in cdef functions.

15 years ago#158: Small change to error message
Dag Sverre Seljebotn [Tue, 17 Mar 2009 06:32:51 +0000 (07:32 +0100)]
#158: Small change to error message

15 years agoBug 158 -- raise error if cdef variable declared after it's used.
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.

15 years agotest case for ticket 232 (without __new__ support)
Stefan Behnel [Mon, 16 Mar 2009 20:33:46 +0000 (21:33 +0100)]
test case for ticket 232 (without __new__ support)

15 years agomoved working bug test case to tests/run/
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

15 years agotest for ticket 237
Stefan Behnel [Mon, 16 Mar 2009 20:09:16 +0000 (21:09 +0100)]
test for ticket 237

15 years agorefactored GIL checking into separate transform (ticket #205)
Stefan Behnel [Sun, 15 Mar 2009 18:34:39 +0000 (19:34 +0100)]
refactored GIL checking into separate transform (ticket #205)

15 years agoprint node position in PrintTree
Stefan Behnel [Sun, 15 Mar 2009 14:42:40 +0000 (15:42 +0100)]
print node position in PrintTree

15 years agomake code generation tracing an official debug feature, disable all debug features...
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

15 years agofix test case
Stefan Behnel [Sun, 15 Mar 2009 08:01:32 +0000 (09:01 +0100)]
fix test case

15 years agoFix #156, missing self in cpdef method.
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

15 years agoAdded if around for loop (for issue 208)
Magnus Lie Hetland [Sun, 8 Feb 2009 11:49:15 +0000 (12:49 +0100)]
Added if around for loop (for issue 208)

15 years agoint powering tests
Robert Bradshaw [Sun, 15 Mar 2009 05:13:11 +0000 (22:13 -0700)]
int powering tests

15 years agopow operator on ints
Robert Bradshaw [Sun, 15 Mar 2009 05:10:46 +0000 (22:10 -0700)]
pow operator on ints

15 years agoTemplating utility code
Robert Bradshaw [Sun, 15 Mar 2009 04:42:28 +0000 (21:42 -0700)]
Templating utility code

15 years agomerge
Stefan Behnel [Sat, 14 Mar 2009 22:05:09 +0000 (23:05 +0100)]
merge

15 years agominor cythonisation and cleanup in Scanners.pxd
Stefan Behnel [Sat, 14 Mar 2009 22:04:35 +0000 (23:04 +0100)]
minor cythonisation and cleanup in Scanners.pxd

15 years agoremoved dead code
Stefan Behnel [Sat, 14 Mar 2009 22:03:06 +0000 (23:03 +0100)]
removed dead code

15 years agoReduce code size for tuple unpacking.
Robert Bradshaw [Sat, 14 Mar 2009 21:15:31 +0000 (14:15 -0700)]
Reduce code size for tuple unpacking.

15 years agoFix changeset 1839, both typecasts are valid.
Robert Bradshaw [Sat, 14 Mar 2009 20:47:25 +0000 (13:47 -0700)]
Fix changeset 1839, both typecasts are valid.

15 years agofix annotation of optimised switch statement
Stefan Behnel [Sat, 14 Mar 2009 17:12:20 +0000 (18:12 +0100)]
fix annotation of optimised switch statement

15 years agomerge 0.11
Stefan Behnel [Sat, 14 Mar 2009 11:05:58 +0000 (12:05 +0100)]
merge 0.11

15 years agoBump version number to 0.11.
Robert Bradshaw [Sat, 14 Mar 2009 06:01:14 +0000 (23:01 -0700)]
Bump version number to 0.11.

15 years agoticket #186: generate more efficient code when tuple-unpacking a typed tuple
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

15 years agosupport interdependencies between utility code fragments
Stefan Behnel [Fri, 13 Mar 2009 22:24:36 +0000 (23:24 +0100)]
support interdependencies between utility code fragments

15 years agomajor cleanup to fix Py3 code issues (found by 2to3 and 'python2.6 -3')
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')

15 years agouse new-style classes everywhere to prevent unexpected obstacles in getting 2to3...
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

15 years agosome more cythonisation in Plex scanner classes (15% faster for lxml)
Stefan Behnel [Thu, 12 Mar 2009 19:24:28 +0000 (20:24 +0100)]
some more cythonisation in Plex scanner classes (15% faster for lxml)

15 years agocleanup: use new-style classes in PyrexTypes
Stefan Behnel [Thu, 12 Mar 2009 15:41:16 +0000 (16:41 +0100)]
cleanup: use new-style classes in PyrexTypes

15 years agomerge
Stefan Behnel [Wed, 11 Mar 2009 16:35:00 +0000 (17:35 +0100)]
merge

15 years agoprevent parser syntax from allowing 'cdef cpdef ...'
Stefan Behnel [Wed, 11 Mar 2009 16:34:43 +0000 (17:34 +0100)]
prevent parser syntax from allowing 'cdef cpdef ...'

15 years agofix typecast testcase, int and pointer have different sizes in 64 bits
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

15 years agoRelease Candidate 3
Robert Bradshaw [Wed, 11 Mar 2009 11:47:40 +0000 (04:47 -0700)]
Release Candidate 3

15 years agomerge
Robert Bradshaw [Wed, 11 Mar 2009 11:46:53 +0000 (04:46 -0700)]
merge

15 years agoMore indexing tests
Robert Bradshaw [Wed, 11 Mar 2009 11:46:33 +0000 (04:46 -0700)]
More indexing tests

15 years agoLess hacky fast c int indexing.
Robert Bradshaw [Wed, 11 Mar 2009 11:41:37 +0000 (04:41 -0700)]
Less hacky fast c int indexing.

15 years agobetter error message
Stefan Behnel [Wed, 11 Mar 2009 09:26:38 +0000 (10:26 +0100)]
better error message

15 years agoremove unused code
Stefan Behnel [Tue, 10 Mar 2009 20:06:41 +0000 (21:06 +0100)]
remove unused code

15 years agofix (Py_s)size_t as argument type by removing old code that depended on PyArg_ParseTu...
Stefan Behnel [Tue, 10 Mar 2009 19:49:48 +0000 (20:49 +0100)]
fix (Py_s)size_t as argument type by removing old code that depended on PyArg_ParseTupleAndKeywords()

15 years agoRelease Candidate 2
Robert Bradshaw [Tue, 10 Mar 2009 17:41:14 +0000 (10:41 -0700)]
Release Candidate 2

15 years agoset up numpy include directories in test runner when running test scripts (by Lisandro)
Stefan Behnel [Tue, 10 Mar 2009 17:13:13 +0000 (18:13 +0100)]
set up numpy include directories in test runner when running test scripts (by Lisandro)

15 years agofix inclusion of package data files
Stefan Behnel [Tue, 10 Mar 2009 09:21:26 +0000 (10:21 +0100)]
fix inclusion of package data files

15 years agomerge
Robert Bradshaw [Tue, 10 Mar 2009 02:47:11 +0000 (19:47 -0700)]
merge

15 years agoBetter error reporting in pyxbuild
Robert Bradshaw [Tue, 10 Mar 2009 02:46:44 +0000 (19:46 -0700)]
Better error reporting in pyxbuild

15 years agoadd missing files to MANIFEST.in
Stefan Behnel [Mon, 9 Mar 2009 19:10:52 +0000 (20:10 +0100)]
add missing files to MANIFEST.in

15 years agotest case for ticket #18
Stefan Behnel [Sun, 8 Mar 2009 13:18:27 +0000 (14:18 +0100)]
test case for ticket #18

15 years agotest case for ticket #99
Stefan Behnel [Sun, 8 Mar 2009 13:10:09 +0000 (14:10 +0100)]
test case for ticket #99

15 years agotests for T165 and T156
Stefan Behnel [Sun, 8 Mar 2009 12:53:37 +0000 (13:53 +0100)]
tests for T165 and T156

15 years agoextended test case to also cover ticket #6
Stefan Behnel [Sun, 8 Mar 2009 12:42:46 +0000 (13:42 +0100)]
extended test case to also cover ticket #6

15 years agorelease candidate
Robert Bradshaw [Sun, 8 Mar 2009 08:57:04 +0000 (00:57 -0800)]
release candidate

15 years agoAdded tag 0.11.rc for changeset 838a6b7cae62
Robert Bradshaw [Sun, 8 Mar 2009 08:56:53 +0000 (00:56 -0800)]
Added tag 0.11.rc for changeset 838a6b7cae62

15 years agouse function pointer arguments in import/export api functions (by Lisandro) 0.11.rc
Stefan Behnel [Sun, 8 Mar 2009 07:36:41 +0000 (08:36 +0100)]
use function pointer arguments in import/export api functions (by Lisandro)

15 years agoget rid of the few usages of strcmp(), now replaced with utility inline function...
Lisandro Dalcin [Sun, 8 Mar 2009 00:33:39 +0000 (21:33 -0300)]
get rid of the few usages of strcmp(), now replaced with utility inline function __Pyx_StrEq()

15 years agoanother warning avoidance
Robert Bradshaw [Sat, 7 Mar 2009 23:31:11 +0000 (15:31 -0800)]
another warning avoidance

15 years agoBetter cpdef override check (use method in C API rather than strcmp).
Robert Bradshaw [Sat, 7 Mar 2009 23:30:53 +0000 (15:30 -0800)]
Better cpdef override check (use method in C API rather than strcmp).

15 years agoEnable @locals for methods (ctx is c_class_pxd, not class_pxd)
Robert Bradshaw [Sat, 7 Mar 2009 21:05:11 +0000 (13:05 -0800)]
Enable @locals for methods (ctx is c_class_pxd, not class_pxd)

15 years agore-instate @cython.locals in pxd
Robert Bradshaw [Sat, 7 Mar 2009 20:58:05 +0000 (12:58 -0800)]
re-instate @cython.locals in pxd

15 years agocleanup unused exception class and some fixes for better runtime behavior in refnanny...
Lisandro Dalcin [Fri, 6 Mar 2009 20:57:07 +0000 (18:57 -0200)]
cleanup unused exception class and some fixes for better runtime behavior in refnanny support module

15 years agoFix warning when __Pyx_Print is not used
Lisandro Dalcin [Fri, 6 Mar 2009 20:33:55 +0000 (18:33 -0200)]
Fix warning when __Pyx_Print is not used

15 years agowork-around to fix ticket #228 at least work in Py2.x, while still preventing crashes...
Stefan Behnel [Tue, 3 Mar 2009 19:44:15 +0000 (20:44 +0100)]
work-around to fix ticket #228 at least work in Py2.x, while still preventing crashes in Py3

15 years agofix test case
Stefan Behnel [Tue, 3 Mar 2009 19:43:13 +0000 (20:43 +0100)]
fix test case

15 years agotest case for ticket #228
Stefan Behnel [Tue, 3 Mar 2009 17:56:09 +0000 (18:56 +0100)]
test case for ticket #228

15 years agofix Cython compilation after cdef-locals change
Stefan Behnel [Tue, 3 Mar 2009 17:42:58 +0000 (18:42 +0100)]
fix Cython compilation after cdef-locals change

15 years agomerge
Robert Bradshaw [Mon, 2 Mar 2009 19:20:48 +0000 (11:20 -0800)]
merge

15 years agoprevent generating empty code section during vtable setup
Stefan Behnel [Mon, 2 Mar 2009 14:18:02 +0000 (15:18 +0100)]
prevent generating empty code section during vtable setup

15 years agoenabled test for working ticket
Stefan Behnel [Sun, 1 Mar 2009 20:37:07 +0000 (21:37 +0100)]
enabled test for working ticket

--HG--
rename : tests/bugs/cdef_bool_T227.pyx => tests/run/cdef_bool_T227.pyx

15 years agoreverted rev 1786 as it breaks strict aliasing
Stefan Behnel [Sun, 1 Mar 2009 20:25:20 +0000 (21:25 +0100)]
reverted rev 1786 as it breaks strict aliasing

15 years agofix ticket #227: type check for bool is called PyBool_Check, not CheckExact
Stefan Behnel [Sun, 1 Mar 2009 19:59:01 +0000 (20:59 +0100)]
fix ticket #227: type check for bool is called PyBool_Check, not CheckExact

15 years agotest case for ticket 227
Stefan Behnel [Sun, 1 Mar 2009 19:50:15 +0000 (20:50 +0100)]
test case for ticket 227

15 years agoFix warning when __Pyx_PrintOne not used.
Robert Bradshaw [Sun, 1 Mar 2009 12:23:50 +0000 (04:23 -0800)]
Fix warning when __Pyx_PrintOne not used.

15 years agoFix bug in cdef locals
Robert Bradshaw [Sun, 1 Mar 2009 12:12:46 +0000 (04:12 -0800)]
Fix bug in cdef locals

15 years agochange syntax for Cython's pxd
Robert Bradshaw [Sun, 1 Mar 2009 11:06:24 +0000 (03:06 -0800)]
change syntax for Cython's pxd

15 years agodecorators for cdef functions, remove strange pxd locals syntax
Robert Bradshaw [Sun, 1 Mar 2009 11:04:37 +0000 (03:04 -0800)]
decorators for cdef functions, remove strange pxd locals syntax