cython.git
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 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 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 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 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 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 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 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 agoFix for #253
Robert Bradshaw [Wed, 25 Mar 2009 21:23:29 +0000 (14:23 -0700)]
Fix for #253

--HG--
extra : transplant_source : %9E%5C%97%85%EC%7C%E7%EB%0AZ%8E%1A%B1%C0%1F%14%AA%5B%25R

15 years agoTests for floating point for..from steps (#254)
Robert Bradshaw [Wed, 25 Mar 2009 21:20:22 +0000 (14:20 -0700)]
Tests for floating point for..from steps (#254)

--HG--
extra : transplant_source : -%B8%D3%E8%BB%2C%A3B1%D1%8B%C3%06M%16%82%F1%91%B7G

15 years agoFix py target for-from loop.
Robert Bradshaw [Wed, 25 Mar 2009 20:05:22 +0000 (13:05 -0700)]
Fix py target for-from loop.

--HG--
extra : transplant_source : %03%EF%05%8Dq3%FB%88%89G%2B%BC%7B%A5%A57%3A%C6%0Bs

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

--HG--
extra : transplant_source : %96m%88%15%985T%8E%FF%CEW%16%5B%E3%1E%90%8E%23%00%AE

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

--HG--
extra : transplant_source : H%22Z%EF%DA%20m4l%C6%8A%EB%94%DD%9B%DA%20%0Bn%C6

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

--HG--
extra : transplant_source : %0C%16_W%14l%E8%11%CC%EBc%97%B3%23%B2%87%7D%C0uY

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

--HG--
extra : transplant_source : %E1%9D%DB%8B%E0%1D%C3%AEMD%7Cn%AA%D95%16%D9%085%9C

15 years agoDemos/Setup.py -> Demos/setup.py
Robert Bradshaw [Thu, 2 Apr 2009 19:08:37 +0000 (12:08 -0700)]
Demos/Setup.py -> Demos/setup.py

--HG--
rename : Demos/Setup.py => Demos/setup.py

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

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 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).

15 years agoTest (and fix) corner case in C division
Robert Bradshaw [Sun, 29 Mar 2009 01:02:05 +0000 (18:02 -0700)]
Test (and fix) corner case in C division

15 years agotest for #183
Robert Bradshaw [Sat, 28 Mar 2009 20:47:03 +0000 (13:47 -0700)]
test for #183

15 years agoFix for #260, float floor div
Robert Bradshaw [Sat, 28 Mar 2009 20:11:40 +0000 (13:11 -0700)]
Fix for #260, float floor div

15 years agoTest case for #260, floor div on floats
Robert Bradshaw [Sat, 28 Mar 2009 20:08:20 +0000 (13:08 -0700)]
Test case for #260, floor div on floats

15 years agoTestcase for #267
Dag Sverre Seljebotn [Sat, 28 Mar 2009 16:12:56 +0000 (17:12 +0100)]
Testcase for #267

15 years agoAdd trove classifier "Programming Language :: Cython"
Robert Bradshaw [Sat, 28 Mar 2009 10:02:32 +0000 (03:02 -0700)]
Add trove classifier "Programming Language :: Cython"

15 years agoUse warnings framework for c division.
Robert Bradshaw [Sat, 28 Mar 2009 09:22:07 +0000 (02:22 -0700)]
Use warnings framework for c division.

15 years agoCDP 516 warnings
Robert Bradshaw [Sat, 28 Mar 2009 06:26:39 +0000 (23:26 -0700)]
CDP 516 warnings

15 years agoPropagate directives in analysis phase.
Robert Bradshaw [Sat, 28 Mar 2009 02:58:16 +0000 (19:58 -0700)]
Propagate directives in analysis phase.

15 years agoAdd stdexcept when except+ syntax is used.
Robert Bradshaw [Fri, 27 Mar 2009 19:51:09 +0000 (12:51 -0700)]
Add stdexcept when except+ syntax is used.

15 years agotest case for ticket 262
Stefan Behnel [Fri, 27 Mar 2009 18:09:51 +0000 (19:09 +0100)]
test case for ticket 262

15 years agoRemove internal dependancy on included .pxd files
Robert Bradshaw [Fri, 27 Mar 2009 11:58:21 +0000 (04:58 -0700)]
Remove internal dependancy on included .pxd files

15 years agoStep towards fixing #252
Robert Bradshaw [Fri, 27 Mar 2009 11:26:32 +0000 (04:26 -0700)]
Step towards fixing #252

15 years agomark the real argument name mangling problem as FIXME, the last fix was more of a...
Stefan Behnel [Thu, 26 Mar 2009 07:06:17 +0000 (08:06 +0100)]
mark the real argument name mangling problem as FIXME, the last fix was more of a work-around

15 years agofix cdef opt-arg tests: do not double-mangle __pyx_n struct member
Stefan Behnel [Thu, 26 Mar 2009 06:58:41 +0000 (07:58 +0100)]
fix cdef opt-arg tests: do not double-mangle __pyx_n struct member

15 years agocleanup _ERRORS
Robert Bradshaw [Thu, 26 Mar 2009 06:22:43 +0000 (23:22 -0700)]
cleanup _ERRORS

15 years agoFIx #252, bad C struct identifiers
Robert Bradshaw [Thu, 26 Mar 2009 05:33:50 +0000 (22:33 -0700)]
FIx #252, bad C struct identifiers

15 years agoCEP 516 in pure mode
Robert Bradshaw [Thu, 26 Mar 2009 04:56:52 +0000 (21:56 -0700)]
CEP 516 in pure mode

15 years agomerge
Robert Bradshaw [Thu, 26 Mar 2009 03:55:14 +0000 (20:55 -0700)]
merge

15 years agocython.cdiv and cython.cmod for CEP 516
Robert Bradshaw [Thu, 26 Mar 2009 03:38:19 +0000 (20:38 -0700)]
cython.cdiv and cython.cmod for CEP 516

15 years agocdivision pragma as specified for CEP 516
Robert Bradshaw [Thu, 26 Mar 2009 02:10:09 +0000 (19:10 -0700)]
cdivision pragma as specified for CEP 516

15 years agoTests for c division CEP 516
Robert Bradshaw [Thu, 26 Mar 2009 01:58:53 +0000 (18:58 -0700)]
Tests for c division CEP 516

15 years agoMore utility code specialization.
Robert Bradshaw [Thu, 26 Mar 2009 01:25:51 +0000 (18:25 -0700)]
More utility code specialization.

15 years agomerge
Stefan Behnel [Wed, 25 Mar 2009 22:55:54 +0000 (23:55 +0100)]
merge

15 years agoWarning, not error, on builting type redeclaration.
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.

15 years agoDon't have complex as a builtin type (otherwise, can't access its attributes).
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).

15 years agomerge
Robert Bradshaw [Wed, 25 Mar 2009 22:26:42 +0000 (15:26 -0700)]
merge

15 years agobetter error when user-declared type conflicts with builtin type (#170)
Robert Bradshaw [Wed, 25 Mar 2009 22:23:46 +0000 (15:23 -0700)]
better error when user-declared type conflicts with builtin type (#170)

15 years agoFix bad self argument crash in cpdef methods (#165)
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

15 years agocleanup
Stefan Behnel [Wed, 25 Mar 2009 20:15:26 +0000 (21:15 +0100)]
cleanup

15 years agomerge
Stefan Behnel [Wed, 25 Mar 2009 18:58:13 +0000 (19:58 +0100)]
merge

15 years agoextended error test cases
Stefan Behnel [Wed, 25 Mar 2009 18:41:53 +0000 (19:41 +0100)]
extended error test cases

15 years agoAdded test case for ticket 135 in tests/bugs.
Kurt Smith [Tue, 24 Mar 2009 01:23:38 +0000 (20:23 -0500)]
Added test case for ticket 135 in tests/bugs.

15 years agocleanup last commit
Stefan Behnel [Wed, 25 Mar 2009 16:00:02 +0000 (17:00 +0100)]
cleanup last commit

15 years agomove optimisation for empty except-blocks to code generation time instead of type...
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

15 years agoenable temp allocation debug comments in test runner
Stefan Behnel [Wed, 25 Mar 2009 15:24:48 +0000 (16:24 +0100)]
enable temp allocation debug comments in test runner

15 years agogenerate 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)

15 years agogenerate 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)

15 years agoextended test cases to check for exception __context__ in Py3
Stefan Behnel [Sun, 22 Mar 2009 16:55:30 +0000 (17:55 +0100)]
extended test cases to check for exception __context__ in Py3

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 agomerge
Stefan Behnel [Thu, 19 Mar 2009 21:45:34 +0000 (22:45 +0100)]
merge