cython.git
15 years agoPy3: fix import of Cython.Compiler.Version in setup.py
Stefan Behnel [Fri, 24 Apr 2009 11:38:19 +0000 (13:38 +0200)]
Py3: fix import of Cython.Compiler.Version in setup.py

15 years agouse lib2to3 to port to Py3 on installation
Stefan Behnel [Fri, 24 Apr 2009 11:34:02 +0000 (13:34 +0200)]
use lib2to3 to port to Py3 on installation

15 years agofix indentation
Stefan Behnel [Fri, 24 Apr 2009 09:53:57 +0000 (11:53 +0200)]
fix indentation

15 years agofix some 'python2.6 -3' warnings
Stefan Behnel [Fri, 24 Apr 2009 06:43:55 +0000 (08:43 +0200)]
fix some 'python2.6 -3' warnings

15 years agofix test case
Stefan Behnel [Fri, 17 Apr 2009 07:11:16 +0000 (09:11 +0200)]
fix test case

15 years agomerge
Stefan Behnel [Fri, 17 Apr 2009 07:04:33 +0000 (09:04 +0200)]
merge

15 years agomark bug test for T284 as failing
Stefan Behnel [Fri, 17 Apr 2009 05:54:40 +0000 (07:54 +0200)]
mark bug test for T284 as failing

15 years agoadded test case for T284
Stefan Behnel [Fri, 17 Apr 2009 05:52:53 +0000 (07:52 +0200)]
added test case for T284

15 years agomove stuff out of tests/bugs directory
Robert Bradshaw [Fri, 17 Apr 2009 02:10:51 +0000 (19:10 -0700)]
move stuff out of tests/bugs directory

--HG--
rename : tests/bugs/bad_c_struct_T252.pyx => tests/compile/bad_c_struct_T252.pyx
rename : tests/bugs/pxd_override_T230.pxd => tests/compile/pxd_override_T230.pxd
rename : tests/bugs/pxd_override_T230.py => tests/compile/pxd_override_T230.py
rename : tests/bugs/missing_baseclass_in_predecl_T262.pyx => tests/errors/missing_baseclass_in_predecl_T262.pyx
rename : tests/bugs/return_outside_function_T135.pyx => tests/errors/return_outside_function_T135.pyx
rename : tests/bugs/builtin_types_none_T166.pyx => tests/run/builtin_types_none_T166.pyx
rename : tests/bugs/char_constants_T99.pyx => tests/run/char_constants_T99.pyx
rename : tests/bugs/class_attribute_init_values_T18.pyx => tests/run/class_attribute_init_values_T18.pyx
rename : tests/bugs/ext_instance_type_T232.pyx => tests/run/ext_instance_type_T232.pyx
rename : tests/bugs/funcexc_iter_T228.pyx => tests/run/funcexc_iter_T228.pyx
rename : tests/bugs/ifelseexpr_T267.pyx => tests/run/ifelseexpr_T267.pyx
rename : tests/bugs/large_consts_T237.pyx => tests/run/large_consts_T237.pyx
rename : tests/bugs/methodmangling_T5.pyx => tests/run/methodmangling_T5.pyx
rename : tests/bugs/numpy_ValueError_T172.pyx => tests/run/numpy_ValueError_T172.pyx
rename : tests/bugs/unsignedbehaviour_T184.pyx => tests/run/unsignedbehaviour_T184.pyx

15 years agoUse bugs list instead of bugs directory.
Robert Bradshaw [Fri, 17 Apr 2009 02:08:19 +0000 (19:08 -0700)]
Use bugs list instead of bugs directory.

15 years agoVersion 0.11.1
Robert Bradshaw [Thu, 16 Apr 2009 07:52:32 +0000 (00:52 -0700)]
Version 0.11.1

15 years agoAdded tag 0.11.1 for changeset 6454db601984
Robert Bradshaw [Thu, 16 Apr 2009 07:52:25 +0000 (00:52 -0700)]
Added tag 0.11.1 for changeset 6454db601984

15 years agoModify test for T158 as warnings, not errors, are raised. 0.11.1
Robert Bradshaw [Thu, 16 Apr 2009 07:51:59 +0000 (00:51 -0700)]
Modify test for T158 as warnings, not errors, are raised.

15 years agoMove fixed ticket tests to testing directories.
Robert Bradshaw [Thu, 16 Apr 2009 07:37:02 +0000 (00:37 -0700)]
Move fixed ticket tests to testing directories.

--HG--
rename : tests/bugs/weakref_T276.pyx => tests/compile/weakref_T276.pyx
rename : tests/bugs/c_int_types_T255.pyx => tests/run/c_int_types_T255.pyx

15 years agoMove T252 back to bugs until it is fixed.
Robert Bradshaw [Thu, 16 Apr 2009 07:33:25 +0000 (00:33 -0700)]
Move T252 back to bugs until it is fixed.

--HG--
rename : tests/compile/bad_c_struct_T252.pyx => tests/bugs/bad_c_struct_T252.pyx

15 years agoAdd warning in situations where command line directive behaviour will change in 0.12
Dag Sverre Seljebotn [Wed, 15 Apr 2009 14:15:37 +0000 (16:15 +0200)]
Add warning in situations where command line directive behaviour will change in 0.12

15 years agoDeprecation warning for -X switch
Dag Sverre Seljebotn [Wed, 15 Apr 2009 20:03:27 +0000 (22:03 +0200)]
Deprecation warning for -X switch

15 years agoRequire GIL for pythonic division, check for division overflow
Robert Bradshaw [Wed, 15 Apr 2009 07:27:57 +0000 (00:27 -0700)]
Require GIL for pythonic division, check for division overflow

15 years ago0.11.1 release candidate
Robert Bradshaw [Tue, 14 Apr 2009 23:17:22 +0000 (16:17 -0700)]
0.11.1 release candidate

15 years agocdivision - raise zero division errors
Robert Bradshaw [Tue, 14 Apr 2009 22:12:47 +0000 (15:12 -0700)]
cdivision - raise zero division errors

15 years agofix error when Lexicon source file cannot be open (Cython inside a ZIP file)
Lisandro Dalcin [Tue, 14 Apr 2009 20:39:38 +0000 (17:39 -0300)]
fix error when Lexicon source file cannot be open (Cython inside a ZIP file)

15 years agoremoved unused import of ComprehensionTransform (which doesn't work anyway)
Stefan Behnel [Tue, 14 Apr 2009 05:42:51 +0000 (07:42 +0200)]
removed unused import of ComprehensionTransform (which doesn't work anyway)

15 years agofix compile time constants in array size declarations (e.g. int a[enum_val+1])
Stefan Behnel [Fri, 10 Apr 2009 19:21:02 +0000 (21:21 +0200)]
fix compile time constants in array size declarations (e.g. int a[enum_val+1])

15 years agoremoved unused code and outdated comment
Stefan Behnel [Fri, 10 Apr 2009 18:50:48 +0000 (20:50 +0200)]
removed unused code and outdated comment

15 years agofix compiler crash - but not the underlying problem (see comments in #144)
Stefan Behnel [Fri, 10 Apr 2009 07:18:27 +0000 (09:18 +0200)]
fix compiler crash - but not the underlying problem (see comments in #144)

15 years ago0.11.1.beta
Robert Bradshaw [Fri, 10 Apr 2009 07:12:34 +0000 (00:12 -0700)]
0.11.1.beta

15 years agoAdded tag 0.11.1.beta for changeset 7bc36a0f8172
Robert Bradshaw [Fri, 10 Apr 2009 07:12:27 +0000 (00:12 -0700)]
Added tag 0.11.1.beta for changeset 7bc36a0f8172

15 years agofix compiler crash in function cimport code
Stefan Behnel [Fri, 10 Apr 2009 07:06:56 +0000 (09:06 +0200)]
fix compiler crash in function cimport code

15 years agofix compiler crash on mangled ctypedef names
Stefan Behnel [Fri, 10 Apr 2009 07:04:21 +0000 (09:04 +0200)]
fix compiler crash on mangled ctypedef names

15 years agoenabled now working test case
Stefan Behnel [Fri, 10 Apr 2009 06:57:52 +0000 (08:57 +0200)]
enabled now working test case

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

15 years agoextended test case
Stefan Behnel [Fri, 10 Apr 2009 06:56:37 +0000 (08:56 +0200)]
extended test case

15 years agorefactored 'starred' status into a separate node to support syntax error handling...
Stefan Behnel [Thu, 9 Apr 2009 13:57:56 +0000 (15:57 +0200)]
refactored 'starred' status into a separate node to support syntax error handling outside of assignments

15 years agofix error test
Stefan Behnel [Thu, 9 Apr 2009 10:54:09 +0000 (12:54 +0200)]
fix error test

15 years agomerge with latest cython-devel
Stefan Behnel [Thu, 9 Apr 2009 10:52:20 +0000 (12:52 +0200)]
merge with latest cython-devel

15 years agofix for normal assignments to a non-sequence LHS
Stefan Behnel [Thu, 9 Apr 2009 10:51:50 +0000 (12:51 +0200)]
fix for normal assignments to a non-sequence LHS

15 years agofeature complete implementation of PEP 3132
Stefan Behnel [Thu, 9 Apr 2009 10:07:50 +0000 (12:07 +0200)]
feature complete implementation of PEP 3132

15 years agofix some compiler errors
Stefan Behnel [Thu, 9 Apr 2009 06:27:57 +0000 (08:27 +0200)]
fix some compiler errors

15 years agomerge
Stefan Behnel [Wed, 8 Apr 2009 04:38:56 +0000 (06:38 +0200)]
merge

15 years agouse a "size_t" integral for casting to "char*" pointer in typecast testcase
Lisandro Dalcin [Tue, 7 Apr 2009 21:22:36 +0000 (18:22 -0300)]
use a "size_t" integral for casting to "char*" pointer in typecast testcase
This silents GCC warnings (in 64 bits) about casting integer to pointer of different size.

15 years agocast result of "sizeof()" to "int" in testcase, silents GCC warnings about signed...
Lisandro Dalcin [Tue, 7 Apr 2009 21:05:52 +0000 (18:05 -0300)]
cast result of "sizeof()" to "int" in testcase, silents GCC warnings about signed/unsigned comparisons

15 years agoparser support for PEP 3132 (extended iterable unpacking)
Stefan Behnel [Tue, 7 Apr 2009 18:57:06 +0000 (20:57 +0200)]
parser support for PEP 3132 (extended iterable unpacking)

15 years agofix temp allocation when importing external C functions
Stefan Behnel [Tue, 7 Apr 2009 13:56:49 +0000 (15:56 +0200)]
fix temp allocation when importing external C functions

15 years agore-enable friendly exception traces
Stefan Behnel [Tue, 7 Apr 2009 09:18:11 +0000 (11:18 +0200)]
re-enable friendly exception traces

15 years agodeclare standard C functions 'nogil'
Stefan Behnel [Tue, 7 Apr 2009 08:58:56 +0000 (10:58 +0200)]
declare standard C functions 'nogil'

15 years agomerge
Stefan Behnel [Mon, 6 Apr 2009 17:25:15 +0000 (19:25 +0200)]
merge

15 years agodisable some constant folding operations that can break code
Stefan Behnel [Mon, 6 Apr 2009 17:13:25 +0000 (19:13 +0200)]
disable some constant folding operations that can break code

15 years agofix bug in __Pyx_SetItemInt_Fast
Lisandro Dalcin [Mon, 6 Apr 2009 17:08:13 +0000 (14:08 -0300)]
fix bug in __Pyx_SetItemInt_Fast

15 years agobetter Py -> C conversion for integral types (ticket #255) 0.11.1.beta
Lisandro Dalcin [Mon, 6 Apr 2009 16:51:24 +0000 (13:51 -0300)]
better Py -> C conversion for integral types (ticket #255)

15 years agono need for print in exectest
Robert Bradshaw [Fri, 10 Apr 2009 06:46:18 +0000 (23:46 -0700)]
no need for print in exectest

15 years agomerge
Robert Bradshaw [Fri, 10 Apr 2009 06:45:04 +0000 (23:45 -0700)]
merge

15 years agoTicket #270, CEnumDefNode leaks memory during construction
Robert Bradshaw [Fri, 10 Apr 2009 06:05:40 +0000 (23:05 -0700)]
Ticket #270, CEnumDefNode leaks memory during construction

15 years agofixes for "exec" statement implementation.
Lisandro Dalcin [Wed, 8 Apr 2009 02:05:13 +0000 (23:05 -0300)]
fixes for "exec" statement implementation.

- fix broken compile with MSVC (does not like preprocessor #if/#else/#endif inside call to macro PyRun_String)
- enable "exectest" testcase for Python 3

15 years agosimplify nogil declarations in std*.pxd
Stefan Behnel [Fri, 10 Apr 2009 06:13:46 +0000 (08:13 +0200)]
simplify nogil declarations in std*.pxd

15 years agomerge
Stefan Behnel [Fri, 10 Apr 2009 05:50:09 +0000 (07:50 +0200)]
merge

15 years agoAnother for..from fix when target is a python global
Robert Bradshaw [Thu, 9 Apr 2009 23:58:05 +0000 (16:58 -0700)]
Another for..from fix when target is a python global

15 years agomerge
Stefan Behnel [Thu, 9 Apr 2009 14:00:07 +0000 (16:00 +0200)]
merge

15 years agoTrac #158 (defined after used) a warning for now for backwards compatability.
Robert Bradshaw [Thu, 9 Apr 2009 11:57:44 +0000 (04:57 -0700)]
Trac #158 (defined after used) a warning for now for backwards compatability.

Will change in 0.12

15 years agoPropagate env directives the correct way (fallout from cdivision)
Robert Bradshaw [Thu, 9 Apr 2009 11:50:18 +0000 (04:50 -0700)]
Propagate env directives the correct way (fallout from cdivision)

15 years agofilter cpp tests based on module name
Robert Bradshaw [Thu, 9 Apr 2009 11:49:14 +0000 (04:49 -0700)]
filter cpp tests based on module name

15 years agoFix 158 to ignore extern redeclarations.
Robert Bradshaw [Thu, 9 Apr 2009 08:51:38 +0000 (01:51 -0700)]
Fix 158 to ignore extern redeclarations.

15 years agouse PY_FORMAT_SIZE_T to format Py_ssize_t values
Lisandro Dalcin [Mon, 6 Apr 2009 19:31:47 +0000 (16:31 -0300)]
use PY_FORMAT_SIZE_T to format Py_ssize_t values

15 years agofix bad core generation for ctypedef classes when init tp_weaklistoffset type slot
Lisandro Dalcin [Wed, 8 Apr 2009 23:09:24 +0000 (20:09 -0300)]
fix bad core generation for ctypedef classes when init tp_weaklistoffset type slot

15 years agoInclude stdexcept in all cases.
Robert Bradshaw [Fri, 3 Apr 2009 22:59:21 +0000 (15:59 -0700)]
Include stdexcept in all cases.

15 years agoTest for cpp exception handling
Robert Bradshaw [Fri, 3 Apr 2009 22:57:01 +0000 (15:57 -0700)]
Test for cpp exception handling

15 years ago0.11.1.alpha
Robert Bradshaw [Fri, 3 Apr 2009 08:51:19 +0000 (01:51 -0700)]
0.11.1.alpha

15 years agoAdded tag 0.11.1.alpha for changeset 4497f635d5fd
Robert Bradshaw [Fri, 3 Apr 2009 08:51:06 +0000 (01:51 -0700)]
Added tag 0.11.1.alpha for changeset 4497f635d5fd

15 years agoTests for #230 0.11.1.alpha
Robert Bradshaw [Fri, 3 Apr 2009 07:34:33 +0000 (00:34 -0700)]
Tests for #230

15 years agoFix ticket #230, pxd cdef override for subclass methods
Robert Bradshaw [Fri, 3 Apr 2009 07:33:16 +0000 (00:33 -0700)]
Fix ticket #230, pxd cdef override for subclass methods

15 years agoTest for ticket #4, from package cimport module, finish fixing ticket.
Robert Bradshaw [Fri, 3 Apr 2009 00:39:09 +0000 (17:39 -0700)]
Test for ticket #4, from package cimport module, finish fixing ticket.

15 years agospecial-case __weakref__ when determining C-safe identifiers (related to #252)
Lisandro Dalcin [Fri, 3 Apr 2009 00:23:19 +0000 (21:23 -0300)]
special-case __weakref__ when determining C-safe identifiers (related to #252)

15 years agoFix ticket #4, from package cimport module
Robert Bradshaw [Thu, 2 Apr 2009 23:45:33 +0000 (16:45 -0700)]
Fix ticket #4, from package cimport module

15 years agoAdd c99 keywords to invalid name list
Robert Bradshaw [Thu, 2 Apr 2009 23:00:08 +0000 (16:00 -0700)]
Add c99 keywords to invalid name list

15 years agomerge latest cython-devel
Robert Bradshaw [Thu, 2 Apr 2009 20:24:04 +0000 (13:24 -0700)]
merge latest cython-devel
(messy, despite transplant)

15 years agoMerge of #271 bugfix
Dag Sverre Seljebotn [Tue, 31 Mar 2009 21:10:19 +0000 (23:10 +0200)]
Merge of #271 bugfix

15 years agoFix #271
Dag Sverre Seljebotn [Tue, 31 Mar 2009 21:07:13 +0000 (23:07 +0200)]
Fix #271

15 years agoRemove old temp system
Dag Sverre Seljebotn [Tue, 31 Mar 2009 20:47:36 +0000 (22:47 +0200)]
Remove old temp system

15 years agoMove local manual temporaries from env to code
Dag Sverre Seljebotn [Tue, 31 Mar 2009 20:05:55 +0000 (22:05 +0200)]
Move local manual temporaries from env to code

15 years agoRemove allocate_temps/release_temps phase
Dag Sverre Seljebotn [Tue, 31 Mar 2009 19:23:35 +0000 (21:23 +0200)]
Remove allocate_temps/release_temps phase

15 years agoAll exprnodes over; NewTempExprNode folded into ExprNode
Dag Sverre Seljebotn [Mon, 30 Mar 2009 20:14:31 +0000 (22:14 +0200)]
All exprnodes over; NewTempExprNode folded into ExprNode

15 years agoTempNode to new temps (changes its interface was necesarry)
Dag Sverre Seljebotn [Mon, 30 Mar 2009 18:58:40 +0000 (20:58 +0200)]
TempNode to new temps (changes its interface was necesarry)

15 years agoNone check for optimised dict() call
Stefan Behnel [Sun, 29 Mar 2009 19:46:04 +0000 (21:46 +0200)]
None check for optimised dict() call

15 years agoNoneCheckNode to enforce runtime None checks for object references
Stefan Behnel [Sun, 29 Mar 2009 18:55:51 +0000 (20:55 +0200)]
NoneCheckNode to enforce runtime None checks for object references

15 years agofix GeneralCallNode
Stefan Behnel [Sun, 29 Mar 2009 18:44:11 +0000 (20:44 +0200)]
fix GeneralCallNode

15 years agofix for ticket 232: remember result type when calling an extension type
Stefan Behnel [Sun, 29 Mar 2009 17:25:38 +0000 (19:25 +0200)]
fix for ticket 232: remember result type when calling an extension type

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

15 years agoforgotten name change
Stefan Behnel [Sun, 29 Mar 2009 17:07:42 +0000 (19:07 +0200)]
forgotten name change

15 years agodebritification
Stefan Behnel [Sun, 29 Mar 2009 16:49:48 +0000 (18:49 +0200)]
debritification

15 years agomerge
Stefan Behnel [Sun, 29 Mar 2009 16:44:44 +0000 (18:44 +0200)]
merge

15 years agooptimise dict(some_dict) into a call to PyDict_Copy()
Stefan Behnel [Sun, 29 Mar 2009 16:44:04 +0000 (18:44 +0200)]
optimise dict(some_dict) into a call to PyDict_Copy()

15 years agocleanup and simplification, moved some optimised builtin list methods into the transf...
Stefan Behnel [Sun, 29 Mar 2009 16:43:32 +0000 (18:43 +0200)]
cleanup and simplification, moved some optimised builtin list methods into the transform to see how it works out

15 years agoCondExprNode over to new temps
Dag Sverre Seljebotn [Sun, 29 Mar 2009 16:00:15 +0000 (18:00 +0200)]
CondExprNode over to new temps

15 years agomerge
Dag Sverre Seljebotn [Sun, 29 Mar 2009 15:48:29 +0000 (17:48 +0200)]
merge

15 years agocleanup
Stefan Behnel [Sun, 29 Mar 2009 11:31:32 +0000 (13:31 +0200)]
cleanup

15 years agogeneral optimisation support for calls to builtin types and their methods
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)

15 years agoIndexNode went smoothly to newtemps
Dag Sverre Seljebotn [Sun, 29 Mar 2009 10:57:22 +0000 (12:57 +0200)]
IndexNode went smoothly to newtemps

15 years agoGuard against the class of bugs which #267 was a member of
Dag Sverre Seljebotn [Sun, 29 Mar 2009 10:39:15 +0000 (12:39 +0200)]
Guard against the class of bugs which #267 was a member of

15 years agomake import explicit (would be better to avoid the star imports, though)
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)

15 years agomerge
Dag Sverre Seljebotn [Sun, 29 Mar 2009 10:19:40 +0000 (12:19 +0200)]
merge

15 years agoFix #267
Dag Sverre Seljebotn [Sun, 29 Mar 2009 10:19:11 +0000 (12:19 +0200)]
Fix #267

15 years agoFixed error in testcase
Dag Sverre Seljebotn [Sun, 29 Mar 2009 10:06:06 +0000 (12:06 +0200)]
Fixed error in testcase

15 years agoSplit int/float division cases for efficiency, make it work even if C compiler takes...
Robert Bradshaw [Sun, 29 Mar 2009 01:20:15 +0000 (18:20 -0700)]
Split int/float division cases for efficiency, make it work even if C compiler takes floor (don't know of any that do).