cython.git
15 years agoenable full type inference in compiled parser
Stefan Behnel [Sun, 6 Dec 2009 11:52:07 +0000 (12:52 +0100)]
enable full type inference in compiled parser

15 years agokeep ignoring unknown directives in directive comments
Stefan Behnel [Sun, 6 Dec 2009 11:04:41 +0000 (12:04 +0100)]
keep ignoring unknown directives in directive comments

15 years agosupport non-bool options and multiple options as compiler comment directives
Stefan Behnel [Sun, 6 Dec 2009 10:55:19 +0000 (11:55 +0100)]
support non-bool options and multiple options as compiler comment directives

15 years agosupport charptr.decode() with non-literal encodings and fix some temp usage issues...
Stefan Behnel [Sun, 6 Dec 2009 10:22:59 +0000 (11:22 +0100)]
support charptr.decode() with non-literal encodings and fix some temp usage issues; test case split

--HG--
rename : tests/run/carray_slicing.pyx => tests/run/charptr_decode.pyx

15 years agoextended test case
Stefan Behnel [Sat, 5 Dec 2009 23:32:09 +0000 (00:32 +0100)]
extended test case

15 years ago'type inference' for special temp nodes
Stefan Behnel [Sat, 5 Dec 2009 23:09:54 +0000 (00:09 +0100)]
'type inference' for special temp nodes

15 years agoinfer types of special args/kwargs parameters
Stefan Behnel [Sat, 5 Dec 2009 23:04:50 +0000 (00:04 +0100)]
infer types of special args/kwargs parameters

15 years agominor refactoring; fix handling first argument in classmethods; fix ticket #462:...
Stefan Behnel [Sat, 5 Dec 2009 22:39:57 +0000 (23:39 +0100)]
minor refactoring; fix handling first argument in classmethods; fix ticket #462: allow method(*args) in cdef classes

15 years agocomment
Stefan Behnel [Sat, 5 Dec 2009 22:35:44 +0000 (23:35 +0100)]
comment

15 years agocomment
Stefan Behnel [Sat, 5 Dec 2009 16:39:14 +0000 (17:39 +0100)]
comment

15 years agofix #463: TypeofNode crashes when typeof() is called on expressions
Stefan Behnel [Sat, 5 Dec 2009 16:37:05 +0000 (17:37 +0100)]
fix #463: TypeofNode crashes when typeof() is called on expressions

15 years agofix copy+paste error messages
Stefan Behnel [Sat, 5 Dec 2009 16:25:17 +0000 (17:25 +0100)]
fix copy+paste error messages

15 years agotest case for ticket #462
Stefan Behnel [Sat, 5 Dec 2009 13:26:15 +0000 (14:26 +0100)]
test case for ticket #462

15 years agodiscount one to min pos args for classmethod (complementary fix for #454)
Lisandro Dalcin [Sat, 5 Dec 2009 00:44:45 +0000 (21:44 -0300)]
discount one to min pos args for classmethod (complementary fix for #454)

15 years agotest fixes
Stefan Behnel [Fri, 4 Dec 2009 14:23:23 +0000 (15:23 +0100)]
test fixes

15 years agotest case for dotted attribute names, some cleanup
Stefan Behnel [Fri, 4 Dec 2009 13:19:32 +0000 (14:19 +0100)]
test case for dotted attribute names, some cleanup

15 years agosimple test case for safe double inference
Stefan Behnel [Fri, 4 Dec 2009 13:04:20 +0000 (14:04 +0100)]
simple test case for safe double inference

15 years agosupport dotted attributes in TreePath
Stefan Behnel [Fri, 4 Dec 2009 12:59:24 +0000 (13:59 +0100)]
support dotted attributes in TreePath

15 years agoreverted accidental left-over in last commit
Stefan Behnel [Fri, 4 Dec 2009 11:09:09 +0000 (12:09 +0100)]
reverted accidental left-over in last commit

15 years agosafety fix for ticket 461: prevent imported extension types from becoming spanning...
Stefan Behnel [Fri, 4 Dec 2009 11:08:14 +0000 (12:08 +0100)]
safety fix for ticket 461: prevent imported extension types from becoming spanning types - use PyObject instead

15 years agoextended test case
Stefan Behnel [Fri, 4 Dec 2009 10:21:56 +0000 (11:21 +0100)]
extended test case

15 years agotype inference for builtin/extension types
Stefan Behnel [Fri, 4 Dec 2009 10:15:00 +0000 (11:15 +0100)]
type inference for builtin/extension types

15 years agoPy3 test fixes
Stefan Behnel [Fri, 4 Dec 2009 08:32:56 +0000 (09:32 +0100)]
Py3 test fixes

15 years agofix compiler crashes on unknown functions
Stefan Behnel [Fri, 4 Dec 2009 06:45:15 +0000 (07:45 +0100)]
fix compiler crashes on unknown functions

15 years agofix test case when safe type inference is enabled
Stefan Behnel [Fri, 4 Dec 2009 06:25:03 +0000 (07:25 +0100)]
fix test case when safe type inference is enabled

15 years agotype inference for SliceIndexNode
Stefan Behnel [Fri, 4 Dec 2009 06:24:49 +0000 (07:24 +0100)]
type inference for SliceIndexNode

15 years agoforgotten commit: make sure we only infer types if type inference is enabled
Stefan Behnel [Fri, 4 Dec 2009 05:40:18 +0000 (06:40 +0100)]
forgotten commit: make sure we only infer types if type inference is enabled

15 years ago'safe' mode for type inference: only infer types that are very unlikely to break...
Stefan Behnel [Fri, 4 Dec 2009 05:39:07 +0000 (06:39 +0100)]
'safe' mode for type inference: only infer types that are very unlikely to break code

15 years agoinfer builtin/extension types from type constructors
Stefan Behnel [Fri, 4 Dec 2009 05:36:17 +0000 (06:36 +0100)]
infer builtin/extension types from type constructors

15 years agolist of builtin types that are known to always return an instance of themselves
Stefan Behnel [Fri, 4 Dec 2009 05:35:05 +0000 (06:35 +0100)]
list of builtin types that are known to always return an instance of themselves

15 years agomore explicit method to check if a type can coerce to a Python object
Stefan Behnel [Thu, 3 Dec 2009 14:05:01 +0000 (15:05 +0100)]
more explicit method to check if a type can coerce to a Python object

15 years agofix test case
Stefan Behnel [Thu, 3 Dec 2009 12:48:51 +0000 (13:48 +0100)]
fix test case

15 years agoemulate original error for attributes on unconvertible types
Stefan Behnel [Thu, 3 Dec 2009 12:48:49 +0000 (13:48 +0100)]
emulate original error for attributes on unconvertible types

15 years agocleanup
Stefan Behnel [Thu, 3 Dec 2009 12:27:05 +0000 (13:27 +0100)]
cleanup

15 years agotypo in new test case
Stefan Behnel [Thu, 3 Dec 2009 12:23:21 +0000 (13:23 +0100)]
typo in new test case

15 years agotest for ticket 236
Stefan Behnel [Thu, 3 Dec 2009 12:21:00 +0000 (13:21 +0100)]
test for ticket 236

15 years agoenable Python methods on C types through coercion to Python objects
Stefan Behnel [Thu, 3 Dec 2009 12:17:39 +0000 (13:17 +0100)]
enable Python methods on C types through coercion to Python objects

15 years agosupport "c_string.decode(enc)" and "c_string[x:].decode(enc)" efficiently
Stefan Behnel [Sat, 28 Nov 2009 13:23:04 +0000 (14:23 +0100)]
support "c_string.decode(enc)" and "c_string[x:].decode(enc)" efficiently

15 years agolet char*->bytes conversion know that it returns bytes
Stefan Behnel [Sat, 28 Nov 2009 08:10:25 +0000 (09:10 +0100)]
let char*->bytes conversion know that it returns bytes

15 years agofix recursive use of LetNodeMixin
Stefan Behnel [Sat, 28 Nov 2009 08:05:53 +0000 (09:05 +0100)]
fix recursive use of LetNodeMixin

15 years agoPy3 test fix
Stefan Behnel [Fri, 27 Nov 2009 20:28:17 +0000 (21:28 +0100)]
Py3 test fix

15 years agomerge
Stefan Behnel [Fri, 27 Nov 2009 20:17:40 +0000 (21:17 +0100)]
merge

15 years agoTests for #258.
Robert Bradshaw [Fri, 27 Nov 2009 20:08:09 +0000 (12:08 -0800)]
Tests for #258.

15 years agoFix #258, extern builtin conflicts.
Robert Bradshaw [Fri, 27 Nov 2009 20:07:01 +0000 (12:07 -0800)]
Fix #258, extern builtin conflicts.

15 years agoFix typo.
Robert Bradshaw [Fri, 27 Nov 2009 19:07:59 +0000 (11:07 -0800)]
Fix typo.

(My fault applying patch.)

15 years agoWhen tests fail, runtests.py should exit with non-zero exit status.
Arfrever Frehtes Taifersar Arahesis [Fri, 27 Nov 2009 18:56:12 +0000 (10:56 -0800)]
When tests fail, runtests.py should exit with non-zero exit status.

15 years agofix #454: type of first parameter in classmethods
Stefan Behnel [Fri, 27 Nov 2009 16:51:44 +0000 (17:51 +0100)]
fix #454: type of first parameter in classmethods

15 years agotest case for #408
Stefan Behnel [Fri, 27 Nov 2009 15:18:44 +0000 (16:18 +0100)]
test case for #408

15 years agotiny cleanup
Stefan Behnel [Fri, 27 Nov 2009 11:21:16 +0000 (12:21 +0100)]
tiny cleanup

15 years agoextended test case
Stefan Behnel [Thu, 26 Nov 2009 20:42:37 +0000 (21:42 +0100)]
extended test case

15 years agomerge
Stefan Behnel [Thu, 26 Nov 2009 19:53:44 +0000 (20:53 +0100)]
merge

15 years agoa couple more tests on builtin names
Stefan Behnel [Thu, 26 Nov 2009 19:52:00 +0000 (20:52 +0100)]
a couple more tests on builtin names

15 years agocomment
Stefan Behnel [Thu, 26 Nov 2009 19:51:20 +0000 (20:51 +0100)]
comment

15 years agosupport len(char*) efficiently by calling strlen() instead
Stefan Behnel [Thu, 26 Nov 2009 19:49:09 +0000 (20:49 +0100)]
support len(char*) efficiently by calling strlen() instead

15 years agomake sure we only optimise builtins and no user defined names, support further optimi...
Stefan Behnel [Thu, 26 Nov 2009 19:47:59 +0000 (20:47 +0100)]
make sure we only optimise builtins and no user defined names, support further optimisations on builtins that were already replaced with C functions

15 years agomake declared builtin types recognisable as such
Stefan Behnel [Thu, 26 Nov 2009 19:45:45 +0000 (20:45 +0100)]
make declared builtin types recognisable as such

15 years agorecognise when 'classmethod' gets overridden
Stefan Behnel [Thu, 26 Nov 2009 18:09:02 +0000 (19:09 +0100)]
recognise when 'classmethod' gets overridden

15 years agoLinking flags for embedded mode.
Robert Bradshaw [Tue, 24 Nov 2009 07:33:16 +0000 (23:33 -0800)]
Linking flags for embedded mode.

15 years agoAlso copy .hgignore
Robert Bradshaw [Mon, 23 Nov 2009 19:21:22 +0000 (11:21 -0800)]
Also copy .hgignore

15 years agomerge
Robert Bradshaw [Mon, 23 Nov 2009 19:16:14 +0000 (11:16 -0800)]
merge

15 years agoAdded tag 0.12 for changeset fae19937e494
Robert Bradshaw [Mon, 23 Nov 2009 18:32:41 +0000 (10:32 -0800)]
Added tag 0.12 for changeset fae19937e494

15 years agoBump version number. 0.12
Robert Bradshaw [Mon, 23 Nov 2009 18:32:12 +0000 (10:32 -0800)]
Bump version number.

15 years agoRemove repo from sdist, autogenerate .hgrev
Robert Bradshaw [Sun, 22 Nov 2009 10:29:16 +0000 (02:29 -0800)]
Remove repo from sdist, autogenerate .hgrev

15 years agoMakefile target for repo.
Robert Bradshaw [Sun, 22 Nov 2009 10:29:15 +0000 (02:29 -0800)]
Makefile target for repo.

15 years agoFix bug in handling of environment directives.
Robert Bradshaw [Sun, 22 Nov 2009 00:28:04 +0000 (16:28 -0800)]
Fix bug in handling of environment directives.

15 years agomerge
Robert Bradshaw [Sun, 22 Nov 2009 00:27:12 +0000 (16:27 -0800)]
merge

15 years agoRemove extra files in distribution tar.
Robert Bradshaw [Sat, 21 Nov 2009 05:30:39 +0000 (21:30 -0800)]
Remove extra files in distribution tar.

15 years agoBetter cmd line error message.
Robert Bradshaw [Sat, 21 Nov 2009 01:10:16 +0000 (17:10 -0800)]
Better cmd line error message.

15 years agoOne last precaution with temp files on Windows.
Robert Bradshaw [Tue, 17 Nov 2009 21:35:14 +0000 (13:35 -0800)]
One last precaution with temp files on Windows.

15 years agoBump version.
Robert Bradshaw [Tue, 17 Nov 2009 21:31:50 +0000 (13:31 -0800)]
Bump version.

15 years agoFix forking in runtests.py (ticket #449).
Robert Bradshaw [Tue, 17 Nov 2009 19:07:28 +0000 (11:07 -0800)]
Fix forking in runtests.py (ticket #449).

15 years agoFix for setting real/imaginary parts for MSVC C++.
Robert Bradshaw [Tue, 17 Nov 2009 17:46:07 +0000 (09:46 -0800)]
Fix for setting real/imaginary parts for MSVC C++.

15 years agomake CTypedefType.declaration_code() honor dll_linkage
Lisandro Dalcin [Fri, 13 Nov 2009 20:50:34 +0000 (18:50 -0200)]
make CTypedefType.declaration_code() honor dll_linkage

15 years agoBump version number.
Robert Bradshaw [Fri, 13 Nov 2009 05:34:27 +0000 (21:34 -0800)]
Bump version number.

15 years agoAdded tag 0.12.rc0 for changeset e77827f09af6
Robert Bradshaw [Fri, 13 Nov 2009 05:34:17 +0000 (21:34 -0800)]
Added tag 0.12.rc0 for changeset e77827f09af6

15 years agogroup definition of Py2/Py3 bytes/str compatibility macros in generated C code 0.12.rc0
Lisandro Dalcin [Thu, 12 Nov 2009 13:53:46 +0000 (11:53 -0200)]
group definition of Py2/Py3 bytes/str compatibility macros in generated C code

15 years agomerge
Robert Bradshaw [Wed, 11 Nov 2009 20:46:43 +0000 (12:46 -0800)]
merge

15 years agoFix for in/not in cascading.
Robert Bradshaw [Wed, 11 Nov 2009 20:45:58 +0000 (12:45 -0800)]
Fix for in/not in cascading.

15 years agoimplementation of 'not in' is broken (ticket #455)
Lisandro Dalcin [Wed, 11 Nov 2009 15:11:31 +0000 (13:11 -0200)]
implementation of 'not in' is broken (ticket #455)

15 years agocomment
Stefan Behnel [Wed, 11 Nov 2009 07:35:37 +0000 (08:35 +0100)]
comment

15 years agotest case for #454
Stefan Behnel [Wed, 11 Nov 2009 07:34:40 +0000 (08:34 +0100)]
test case for #454

15 years agocomment
Stefan Behnel [Wed, 11 Nov 2009 07:29:40 +0000 (08:29 +0100)]
comment

15 years agoDisable specialfloat for Windows + old Python. (ticket #450)
Robert Bradshaw [Wed, 11 Nov 2009 07:05:37 +0000 (23:05 -0800)]
Disable specialfloat for Windows + old Python. (ticket #450)

15 years agoFix for different Windows float repr
Robert Bradshaw [Wed, 11 Nov 2009 06:47:43 +0000 (22:47 -0800)]
Fix for different Windows float repr

15 years agoOptional setuptools-based cython build
David Cournapeau [Wed, 11 Nov 2009 06:41:07 +0000 (22:41 -0800)]
Optional setuptools-based cython build

15 years agofix mixed declarations and code in function code generation
Lisandro Dalcin [Tue, 10 Nov 2009 23:48:19 +0000 (21:48 -0200)]
fix mixed declarations and code in function code generation

15 years agoTry-except around doctest tempfile deletion (for windows).
Robert Bradshaw [Fri, 6 Nov 2009 07:12:32 +0000 (23:12 -0800)]
Try-except around doctest tempfile deletion (for windows).

15 years agoRemove unneeded cpp_exception compile test.
Robert Bradshaw [Fri, 6 Nov 2009 05:09:47 +0000 (21:09 -0800)]
Remove unneeded cpp_exception compile test.

It's 100% redundant with the test in the run directory, and fails on Windows.

15 years agoInclude all of Tools.
Robert Bradshaw [Thu, 5 Nov 2009 18:51:12 +0000 (10:51 -0800)]
Include all of Tools.

15 years agoMove cpp_exceptions_helper.cpp to cpp_exceptions_helper.h so it is picked up by sdist.
Robert Bradshaw [Thu, 5 Nov 2009 18:48:43 +0000 (10:48 -0800)]
Move cpp_exceptions_helper.cpp to cpp_exceptions_helper.h so it is picked up by sdist.

--HG--
rename : tests/run/cpp_exceptions_helper.cpp => tests/run/cpp_exceptions_helper.h

15 years agoremove broken option
Robert Bradshaw [Thu, 5 Nov 2009 18:27:40 +0000 (10:27 -0800)]
remove broken option

15 years agoVersion number.
Robert Bradshaw [Thu, 5 Nov 2009 06:41:22 +0000 (22:41 -0800)]
Version number.

15 years agoAdded tag 0.12.alpha0 for changeset 4208042ceeae
Robert Bradshaw [Thu, 5 Nov 2009 06:41:10 +0000 (22:41 -0800)]
Added tag 0.12.alpha0 for changeset 4208042ceeae

15 years agoFix bug #252, mangle illegal optional c argument names. 0.12.alpha0
Robert Bradshaw [Thu, 5 Nov 2009 05:41:14 +0000 (21:41 -0800)]
Fix bug #252, mangle illegal optional c argument names.

15 years agoTests for ticket #446.
Robert Bradshaw [Thu, 5 Nov 2009 05:02:09 +0000 (21:02 -0800)]
Tests for ticket #446.

15 years agoFix ticket #446 (non-float complex regression).
Robert Bradshaw [Thu, 5 Nov 2009 05:01:27 +0000 (21:01 -0800)]
Fix ticket #446 (non-float complex regression).

15 years agorun gc after running a test, prevent the test runner from dead-locking on broken...
Stefan Behnel [Tue, 3 Nov 2009 20:14:10 +0000 (21:14 +0100)]
run gc after running a test, prevent the test runner from dead-locking on broken tests

15 years agoFix #441
Dag Sverre Seljebotn [Tue, 3 Nov 2009 15:35:19 +0000 (16:35 +0100)]
Fix #441

15 years agoOptimized list pop.
Robert Bradshaw [Tue, 3 Nov 2009 09:01:54 +0000 (01:01 -0800)]
Optimized list pop.

15 years agoOptional forking in runtests.py
Robert Bradshaw [Tue, 3 Nov 2009 08:56:50 +0000 (00:56 -0800)]
Optional forking in runtests.py