cython.git
16 years agoimporting a module named by a unicode string seems to work equally well in Py2 and Py3
Stefan Behnel [Wed, 14 May 2008 19:16:45 +0000 (21:16 +0200)]
importing a module named by a unicode string seems to work equally well in Py2 and Py3

16 years agoremoved 'intern_names' Option - always intern identifier-like strings
Stefan Behnel [Wed, 14 May 2008 16:19:04 +0000 (18:19 +0200)]
removed 'intern_names' Option - always intern identifier-like strings

16 years agosupport running tests without running Cython to test the generated code under differe...
Stefan Behnel [Tue, 13 May 2008 21:41:11 +0000 (23:41 +0200)]
support running tests without running Cython to test the generated code under different Python versions (including Py3)

16 years agomerged trunk changes
Stefan Behnel [Tue, 13 May 2008 21:10:50 +0000 (23:10 +0200)]
merged trunk changes

16 years agocleanup
Stefan Behnel [Tue, 13 May 2008 18:06:25 +0000 (20:06 +0200)]
cleanup

16 years agofixes: generate constant declarations before we access them, write cleanup code as...
Stefan Behnel [Tue, 13 May 2008 17:59:36 +0000 (19:59 +0200)]
fixes: generate constant declarations before we access them, write cleanup code as before

16 years agomerged intern table with general string table to support unicode string interning...
Stefan Behnel [Tue, 13 May 2008 10:13:27 +0000 (12:13 +0200)]
merged intern table with general string table to support unicode string interning in Py3

16 years agowhitespace
Stefan Behnel [Tue, 13 May 2008 10:11:58 +0000 (12:11 +0200)]
whitespace

16 years agoidentifiers are encoded strings
Stefan Behnel [Tue, 13 May 2008 09:32:00 +0000 (11:32 +0200)]
identifiers are encoded strings

16 years agohack to make __Pyx_InternStrings() work for now: switch string interning off in Py3
Stefan Behnel [Sat, 10 May 2008 14:16:05 +0000 (16:16 +0200)]
hack to make __Pyx_InternStrings() work for now: switch string interning off in Py3

16 years agomore #define's for stuff that's gone in Py3
Stefan Behnel [Sat, 10 May 2008 14:15:26 +0000 (16:15 +0200)]
more #define's for stuff that's gone in Py3

16 years agounicode fixes
Stefan Behnel [Sat, 10 May 2008 12:50:09 +0000 (14:50 +0200)]
unicode fixes

16 years agoit's Cython, not Pyrex :)
Stefan Behnel [Sat, 10 May 2008 12:46:37 +0000 (14:46 +0200)]
it's Cython, not Pyrex :)

16 years agooriginal Py3 code generation patch by Lisandro Dalcin
Stefan Behnel [Fri, 9 May 2008 17:02:36 +0000 (19:02 +0200)]
original Py3 code generation patch by Lisandro Dalcin

16 years agotest runner: pass '-a' to get an annotated source version of the tests
Stefan Behnel [Fri, 9 May 2008 07:52:49 +0000 (09:52 +0200)]
test runner: pass '-a' to get an annotated source version of the tests

16 years agoput the annotated .html file next to the .c file to fix annotation when the .c file...
Stefan Behnel [Fri, 9 May 2008 07:28:36 +0000 (09:28 +0200)]
put the annotated .html file next to the .c file to fix annotation when the .c file is not in the same directory as the .pyx file

16 years agosupport enabling source annotation via CompilerOptions
Stefan Behnel [Fri, 9 May 2008 06:57:37 +0000 (08:57 +0200)]
support enabling source annotation via CompilerOptions

16 years agofix code annotation for unicode source
Stefan Behnel [Fri, 9 May 2008 06:15:35 +0000 (08:15 +0200)]
fix code annotation for unicode source

16 years agomoved code for filename encoding to Utils.py to make it reusable elsewhere
Stefan Behnel [Fri, 9 May 2008 06:14:38 +0000 (08:14 +0200)]
moved code for filename encoding to Utils.py to make it reusable elsewhere

16 years agomerge
Stefan Behnel [Fri, 9 May 2008 05:39:21 +0000 (07:39 +0200)]
merge

16 years agofix for windows build
Stefan Behnel [Fri, 9 May 2008 05:30:59 +0000 (07:30 +0200)]
fix for windows build

16 years ago...
Robert Bradshaw [Thu, 8 May 2008 16:38:11 +0000 (09:38 -0700)]
...

16 years agomerge __getattribut__ code
Robert Bradshaw [Thu, 8 May 2008 16:37:32 +0000 (09:37 -0700)]
merge __getattribut__ code

16 years agofix for negative compile time int constants
Stefan Behnel [Thu, 8 May 2008 06:25:47 +0000 (08:25 +0200)]
fix for negative compile time int constants

16 years agoTemporary fix for annotation unicode incompatabilities.
Robert Bradshaw [Wed, 7 May 2008 20:07:34 +0000 (13:07 -0700)]
Temporary fix for annotation unicode incompatabilities.

16 years ago__getattr(ibute)__ special methods now work with subclasses.
Peter Todd [Mon, 5 May 2008 03:28:40 +0000 (23:28 -0400)]
__getattr(ibute)__ special methods now work with subclasses.

16 years agoupdated .hgignore
Stefan Behnel [Sun, 4 May 2008 15:32:59 +0000 (17:32 +0200)]
updated .hgignore

16 years agoInitial .hgignore
Kirill Smelkov [Sat, 3 May 2008 11:35:07 +0000 (15:35 +0400)]
Initial .hgignore

We ignore *.pyc, vim swap files, build results under BUILD/ and Lexicon.pickle

This is handy, because otherwise, say after runtest.py run, 'hg status' shows
lots of unrelated info, thus lowering signal-to-noise ratio.

16 years agoset exec bits on scripts
Stefan Behnel [Sun, 4 May 2008 15:29:24 +0000 (17:29 +0200)]
set exec bits on scripts

16 years agoFirst stage of __getattribute__ special method support.
Peter Todd [Fri, 2 May 2008 08:22:48 +0000 (04:22 -0400)]
First stage of __getattribute__ special method support.

Works with test cases for a single class, have not dealt with subclass issues
yet.

16 years agomerge of release changes for Cython 0.9.6.14
Stefan Behnel [Fri, 2 May 2008 08:22:20 +0000 (10:22 +0200)]
merge of release changes for Cython 0.9.6.14

16 years agofix test case and make it really test the expected exception type
Stefan Behnel [Fri, 2 May 2008 08:12:09 +0000 (10:12 +0200)]
fix test case and make it really test the expected exception type

16 years agomake test for new style exceptions run on all Python versions by not actually testing...
Stefan Behnel [Fri, 2 May 2008 07:08:08 +0000 (09:08 +0200)]
make test for new style exceptions run on all Python versions by not actually testing for new style exceptions :)

16 years agodo not test exception message as it differs between Python versions
Stefan Behnel [Fri, 2 May 2008 07:04:32 +0000 (09:04 +0200)]
do not test exception message as it differs between Python versions

16 years agoprint versions of Cython and Python when running tests
Stefan Behnel [Fri, 2 May 2008 07:03:59 +0000 (09:03 +0200)]
print versions of Cython and Python when running tests

16 years agoAdded tag 0.9.6.14 for changeset 966abe58538d
Robert Bradshaw [Thu, 1 May 2008 20:49:18 +0000 (13:49 -0700)]
Added tag 0.9.6.14 for changeset 966abe58538d

16 years agoBump version number. 0.9.6.14
Robert Bradshaw [Thu, 1 May 2008 20:45:20 +0000 (13:45 -0700)]
Bump version number.

16 years agofix test case on 64 bit systems
Stefan Behnel [Thu, 1 May 2008 18:09:34 +0000 (20:09 +0200)]
fix test case on 64 bit systems

16 years agoanother Main.parse() cleanup to make sure a unicode error really comes from the parse...
Stefan Behnel [Thu, 1 May 2008 06:21:43 +0000 (08:21 +0200)]
another Main.parse() cleanup to make sure a unicode error really comes from the parser, not from the filename decoding

16 years agoenabled test case
Stefan Behnel [Thu, 1 May 2008 06:18:39 +0000 (08:18 +0200)]
enabled test case

--HG--
rename : tests/broken/getattr3call.pyx => tests/run/getattr3call.pyx

16 years agosmall fix
Stefan Behnel [Thu, 1 May 2008 06:17:55 +0000 (08:17 +0200)]
small fix

16 years agostupid bug ...
Stefan Behnel [Wed, 30 Apr 2008 21:44:52 +0000 (23:44 +0200)]
stupid bug ...

16 years agorobustness against unicode errors on encoding detection
Stefan Behnel [Wed, 30 Apr 2008 21:42:09 +0000 (23:42 +0200)]
robustness against unicode errors on encoding detection

16 years agotest fix
Stefan Behnel [Wed, 30 Apr 2008 21:08:34 +0000 (23:08 +0200)]
test fix

16 years agoForce tuple creation for generic append.
Robert Bradshaw [Wed, 30 Apr 2008 17:25:18 +0000 (10:25 -0700)]
Force tuple creation for generic append.

16 years agoFix errors due to ambiguous names in type vs. variable namespace.
Robert Bradshaw [Wed, 30 Apr 2008 05:13:11 +0000 (22:13 -0700)]
Fix errors due to ambiguous names in type vs. variable namespace.

I didn't realize how unclean the seperation between the two was, hopefully Dag's project will clean this up soon.

16 years agopublic enum
Robert Bradshaw [Tue, 29 Apr 2008 05:29:10 +0000 (22:29 -0700)]
public enum

16 years ago2.3 compatability, error message tests
Robert Bradshaw [Mon, 28 Apr 2008 20:13:04 +0000 (13:13 -0700)]
2.3 compatability, error message tests

16 years agoFix obscure unicode error related to PEP 263 work.
Robert Bradshaw [Mon, 28 Apr 2008 19:58:02 +0000 (12:58 -0700)]
Fix obscure unicode error related to PEP 263 work.

16 years agomerge
Robert Bradshaw [Mon, 28 Apr 2008 19:18:31 +0000 (12:18 -0700)]
merge

16 years agoBetter unicode error.
Robert Bradshaw [Mon, 28 Apr 2008 19:17:20 +0000 (12:17 -0700)]
Better unicode error.

16 years agoreplace '0' bytes in strings when escaping
Stefan Behnel [Mon, 28 Apr 2008 10:20:02 +0000 (12:20 +0200)]
replace '0' bytes in strings when escaping

16 years agouse str methods instead of importing string module
Stefan Behnel [Mon, 28 Apr 2008 09:48:34 +0000 (11:48 +0200)]
use str methods instead of importing string module

16 years agotest runner for doctests didn't handle compile errors
Stefan Behnel [Mon, 28 Apr 2008 09:43:11 +0000 (11:43 +0200)]
test runner for doctests didn't handle compile errors

16 years agochange working directory when running C compiler to make it work with relative path...
Stefan Behnel [Mon, 28 Apr 2008 08:56:49 +0000 (10:56 +0200)]
change working directory when running C compiler to make it work with relative path names

16 years agomerge
Stefan Behnel [Mon, 28 Apr 2008 08:49:25 +0000 (10:49 +0200)]
merge

16 years agosimple error test for undefined names
Stefan Behnel [Mon, 28 Apr 2008 08:34:24 +0000 (10:34 +0200)]
simple error test for undefined names

16 years agocleanup in runtests.py, support for testing compiler errors ('tests/errors/' directory)
Stefan Behnel [Mon, 28 Apr 2008 08:33:38 +0000 (10:33 +0200)]
cleanup in runtests.py, support for testing compiler errors ('tests/errors/' directory)

16 years agodoctest fix
Stefan Behnel [Mon, 28 Apr 2008 08:32:41 +0000 (10:32 +0200)]
doctest fix

16 years agoAppend optimization.
Robert Bradshaw [Sat, 26 Apr 2008 22:56:46 +0000 (15:56 -0700)]
Append optimization.

16 years agoFixed issues with -w
Gary Furnish [Sat, 26 Apr 2008 21:55:38 +0000 (15:55 -0600)]
Fixed issues with -w

16 years agoBetter error for foo(void)
Robert Bradshaw [Mon, 28 Apr 2008 18:21:33 +0000 (11:21 -0700)]
Better error for foo(void)

16 years agobuiltin type fixes
Robert Bradshaw [Mon, 28 Apr 2008 18:19:48 +0000 (11:19 -0700)]
builtin type fixes

16 years agomerge
Robert Bradshaw [Sun, 27 Apr 2008 08:29:47 +0000 (01:29 -0700)]
merge

16 years agoList and tuple types.
Robert Bradshaw [Sun, 27 Apr 2008 08:29:00 +0000 (01:29 -0700)]
List and tuple types.

16 years agoanother simplification of type inheritance sorting
Stefan Behnel [Sat, 26 Apr 2008 21:34:56 +0000 (23:34 +0200)]
another simplification of type inheritance sorting

16 years agomerge
Stefan Behnel [Sat, 26 Apr 2008 21:11:07 +0000 (23:11 +0200)]
merge

16 years agorewrite of type hierarchy sorting patch
Stefan Behnel [Sat, 26 Apr 2008 21:00:52 +0000 (23:00 +0200)]
rewrite of type hierarchy sorting patch

16 years agoMore merging
Robert Bradshaw [Sat, 26 Apr 2008 19:16:53 +0000 (12:16 -0700)]
More merging

16 years agoMerge circular imports stuff
Robert Bradshaw [Sat, 26 Apr 2008 18:59:05 +0000 (11:59 -0700)]
Merge circular imports stuff

16 years agoMore extendable Setup.py
Robert Bradshaw [Sat, 26 Apr 2008 18:28:35 +0000 (11:28 -0700)]
More extendable Setup.py

16 years agoFix weakref issue for classes inheriting from a pxd
Robert Bradshaw [Sat, 26 Apr 2008 18:19:15 +0000 (11:19 -0700)]
Fix weakref issue for classes inheriting from a pxd

16 years agoAllow predeclared __Pyx_CppExn2PyErr.
Robert Bradshaw [Sat, 26 Apr 2008 15:45:09 +0000 (08:45 -0700)]
Allow predeclared __Pyx_CppExn2PyErr.

16 years agomake test case actually do stuff
Stefan Behnel [Sat, 26 Apr 2008 12:44:44 +0000 (14:44 +0200)]
make test case actually do stuff

--HG--
rename : tests/compile/pylistsubtype.pyx => tests/run/pylistsubtype.pyx

16 years agosimpler test case for extern class subtyping
Stefan Behnel [Sat, 26 Apr 2008 12:38:56 +0000 (14:38 +0200)]
simpler test case for extern class subtyping

16 years agoCircular imports
Gary Furnish [Sat, 26 Apr 2008 10:45:33 +0000 (04:45 -0600)]
Circular imports

16 years agoCircular imports
Gary Furnish [Sat, 26 Apr 2008 10:45:33 +0000 (04:45 -0600)]
Circular imports

16 years agomore tests for source code encodings: test latin-1 and the UTF-8 default
Stefan Behnel [Sat, 26 Apr 2008 06:58:21 +0000 (08:58 +0200)]
more tests for source code encodings: test latin-1 and the UTF-8 default

--HG--
rename : tests/run/unicodeliterals.pyx => tests/run/unicodeliteralsdefault.pyx

16 years ago-w
Gary Furnish [Sat, 26 Apr 2008 01:36:52 +0000 (19:36 -0600)]
-w

16 years agono need to use yield for now
Stefan Behnel [Fri, 25 Apr 2008 22:06:19 +0000 (00:06 +0200)]
no need to use yield for now

16 years agowho needs lambda anyway ...
Stefan Behnel [Fri, 25 Apr 2008 21:39:42 +0000 (23:39 +0200)]
who needs lambda anyway ...

16 years agofixed loads of bugs found by pychecker
Stefan Behnel [Fri, 25 Apr 2008 19:58:17 +0000 (21:58 +0200)]
fixed loads of bugs found by pychecker

16 years agotypo
Stefan Behnel [Fri, 25 Apr 2008 18:17:20 +0000 (20:17 +0200)]
typo

16 years agoPython fixes
Stefan Behnel [Fri, 25 Apr 2008 18:14:17 +0000 (20:14 +0200)]
Python fixes

16 years agotrivial Python code fixes in Plex
Stefan Behnel [Fri, 25 Apr 2008 18:07:53 +0000 (20:07 +0200)]
trivial Python code fixes in Plex

16 years agomerge
Stefan Behnel [Fri, 25 Apr 2008 17:59:52 +0000 (19:59 +0200)]
merge

16 years agotreat .py files in distutils Extension() sources like .pyx files
Stefan Behnel [Fri, 25 Apr 2008 17:58:13 +0000 (19:58 +0200)]
treat .py files in distutils Extension() sources like .pyx files

16 years agotrivial merge
Robert Bradshaw [Fri, 25 Apr 2008 16:56:01 +0000 (09:56 -0700)]
trivial merge

16 years agoRename pxi includes to pxd
Robert Bradshaw [Fri, 25 Apr 2008 16:55:29 +0000 (09:55 -0700)]
Rename pxi includes to pxd

--HG--
rename : Includes/python.pxi => Includes/python.pxd
rename : Includes/python2.5.pxi => Includes/python2.5.pxd
rename : Includes/python_bool.pxi => Includes/python_bool.pxd
rename : Includes/python_complex.pxi => Includes/python_complex.pxd
rename : Includes/python_dict.pxi => Includes/python_dict.pxd
rename : Includes/python_exc.pxi => Includes/python_exc.pxd
rename : Includes/python_float.pxi => Includes/python_float.pxd
rename : Includes/python_function.pxi => Includes/python_function.pxd
rename : Includes/python_instance.pxi => Includes/python_instance.pxd
rename : Includes/python_int.pxi => Includes/python_int.pxd
rename : Includes/python_iterator.pxi => Includes/python_iterator.pxd
rename : Includes/python_list.pxi => Includes/python_list.pxd
rename : Includes/python_long.pxi => Includes/python_long.pxd
rename : Includes/python_mapping.pxi => Includes/python_mapping.pxd
rename : Includes/python_mem.pxi => Includes/python_mem.pxd
rename : Includes/python_method.pxi => Includes/python_method.pxd
rename : Includes/python_module.pxi => Includes/python_module.pxd
rename : Includes/python_number.pxi => Includes/python_number.pxd
rename : Includes/python_object.pxi => Includes/python_object.pxd
rename : Includes/python_parse.pxi => Includes/python_parse.pxd
rename : Includes/python_ref.pxi => Includes/python_ref.pxd
rename : Includes/python_sequence.pxi => Includes/python_sequence.pxd
rename : Includes/python_set.pxi => Includes/python_set.pxd
rename : Includes/python_string.pxi => Includes/python_string.pxd
rename : Includes/python_tuple.pxi => Includes/python_tuple.pxd
rename : Includes/python_type.pxi => Includes/python_type.pxd
rename : Includes/stdio.pxi => Includes/stdio.pxd
rename : Includes/stdlib.pxi => Includes/stdlib.pxd

16 years agoextended test case
Stefan Behnel [Fri, 25 Apr 2008 16:34:18 +0000 (18:34 +0200)]
extended test case

16 years agoextended test case
Stefan Behnel [Fri, 25 Apr 2008 16:31:51 +0000 (18:31 +0200)]
extended test case

16 years agofixes for special float value constants (provided by Christian Heimes)
Stefan Behnel [Fri, 25 Apr 2008 16:20:05 +0000 (18:20 +0200)]
fixes for special float value constants (provided by Christian Heimes)

16 years agolet Cython compile .py files without complaining about their file extension
Stefan Behnel [Fri, 25 Apr 2008 16:05:33 +0000 (18:05 +0200)]
let Cython compile .py files without complaining about their file extension

16 years agotest fix
Stefan Behnel [Fri, 25 Apr 2008 15:58:12 +0000 (17:58 +0200)]
test fix

16 years agomoved special float tests into separate test
Stefan Behnel [Fri, 25 Apr 2008 15:54:35 +0000 (17:54 +0200)]
moved special float tests into separate test

--HG--
rename : tests/run/ct_DEF.pyx => tests/run/specialfloat.pyx

16 years agofixed source filename and Cython code embedding in C files, moved source file reading...
Stefan Behnel [Fri, 25 Apr 2008 12:02:03 +0000 (14:02 +0200)]
fixed source filename and Cython code embedding in C files, moved source file reading algorithm to Cython.Utils to make it available everywhere (and then use it everywhere)

16 years agofixed end marker in control flow engine
Stefan Behnel [Wed, 23 Apr 2008 04:28:02 +0000 (06:28 +0200)]
fixed end marker in control flow engine

16 years agostyle fixes
Stefan Behnel [Tue, 22 Apr 2008 20:11:38 +0000 (22:11 +0200)]
style fixes

16 years agoinclude test case
Stefan Behnel [Tue, 22 Apr 2008 19:55:46 +0000 (21:55 +0200)]
include test case

16 years agounused import
Stefan Behnel [Tue, 22 Apr 2008 19:11:39 +0000 (21:11 +0200)]
unused import