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

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 agoMore easy ones to new temps
Dag Sverre Seljebotn [Sat, 28 Mar 2009 14:39:26 +0000 (15:39 +0100)]
More easy ones to new temps

15 years agoDebug flag to not intercept pipeline exceptions
Dag Sverre Seljebotn [Sat, 28 Mar 2009 14:09:02 +0000 (15:09 +0100)]
Debug flag to not intercept pipeline exceptions

15 years agoDictNode, newtemps and so on
Dag Sverre Seljebotn [Sat, 28 Mar 2009 14:07:20 +0000 (15:07 +0100)]
DictNode, newtemps and so on

15 years agoRemove unused reference to result() in analysis
Dag Sverre Seljebotn [Sat, 28 Mar 2009 13:57:19 +0000 (14:57 +0100)]
Remove unused reference to result() in analysis

15 years agoClassNode to new temps
Dag Sverre Seljebotn [Sat, 28 Mar 2009 11:38:21 +0000 (12:38 +0100)]
ClassNode to new temps

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 agoSome trivial nodes to new temps
Dag Sverre Seljebotn [Sat, 28 Mar 2009 09:20:58 +0000 (10:20 +0100)]
Some trivial nodes to new temps

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 agoNameNode to new temps
Dag Sverre Seljebotn [Fri, 27 Mar 2009 13:37:43 +0000 (14:37 +0100)]
NameNode to new temps

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 04:35:24 +0000 (21:35 -0700)]
merge

15 years agomerge in latest cython-devel
Robert Bradshaw [Thu, 26 Mar 2009 04:34:19 +0000 (21:34 -0700)]
merge in latest cython-devel

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 agomerged in latest cython-devel
Stefan Behnel [Wed, 25 Mar 2009 23:06:52 +0000 (00:06 +0100)]
merged in latest cython-devel

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 agomerge
Robert Bradshaw [Wed, 25 Mar 2009 21:28:06 +0000 (14:28 -0700)]
merge

15 years agoFix for #253
Robert Bradshaw [Wed, 25 Mar 2009 21:23:29 +0000 (14:23 -0700)]
Fix for #253

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)

15 years agomerge
Stefan Behnel [Wed, 25 Mar 2009 21:12:30 +0000 (22:12 +0100)]
merge

15 years agoprevent duplicated calls to analyse_default_values() for cpdef functions
Stefan Behnel [Wed, 25 Mar 2009 20:59:00 +0000 (21:59 +0100)]
prevent duplicated calls to analyse_default_values() for cpdef functions

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

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.

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