cython.git
18 years ago__future__ import fix for older Python versions
Stefan Behnel [Fri, 16 May 2008 06:46:17 +0000 (08:46 +0200)]
__future__ import fix for older Python versions

18 years agoenable __future__ imports
Stefan Behnel [Thu, 15 May 2008 16:49:13 +0000 (18:49 +0200)]
enable __future__ imports

18 years agofix for slot descriptor
Stefan Behnel [Thu, 15 May 2008 15:45:10 +0000 (17:45 +0200)]
fix for slot descriptor

18 years agotest fix
Stefan Behnel [Thu, 15 May 2008 09:36:04 +0000 (11:36 +0200)]
test fix

18 years agotest fix
Stefan Behnel [Thu, 15 May 2008 09:35:28 +0000 (11:35 +0200)]
test fix

18 years agorange optimisation fixes
Stefan Behnel [Thu, 15 May 2008 09:19:23 +0000 (11:19 +0200)]
range optimisation fixes

18 years agocleanup and provisionary Py3 fix
Stefan Behnel [Thu, 15 May 2008 09:14:12 +0000 (11:14 +0200)]
cleanup and provisionary Py3 fix

18 years agobyte encode docstrings correctly
Stefan Behnel [Thu, 15 May 2008 09:13:23 +0000 (11:13 +0200)]
byte encode docstrings correctly

18 years agotest fix - that's how things work ...
Stefan Behnel [Thu, 15 May 2008 08:59:54 +0000 (10:59 +0200)]
test fix - that's how things work ...

18 years agowork around Cython problem with parsing ur'abc' literals
Stefan Behnel [Thu, 15 May 2008 08:38:33 +0000 (10:38 +0200)]
work around Cython problem with parsing ur'abc' literals

18 years agosimplify
Stefan Behnel [Thu, 15 May 2008 08:32:13 +0000 (10:32 +0200)]
simplify

18 years agoempty tuple is used by traceback builder => must be created early
Stefan Behnel [Thu, 15 May 2008 08:29:38 +0000 (10:29 +0200)]
empty tuple is used by traceback builder => must be created early

18 years agotest fix
Stefan Behnel [Thu, 15 May 2008 07:44:11 +0000 (09:44 +0200)]
test fix

18 years agofixed PyMethod_New() call
Stefan Behnel [Thu, 15 May 2008 07:38:35 +0000 (09:38 +0200)]
fixed PyMethod_New() call

18 years agocleanup
Stefan Behnel [Thu, 15 May 2008 07:22:09 +0000 (09:22 +0200)]
cleanup

18 years agounsimplify :)
Stefan Behnel [Thu, 15 May 2008 06:05:19 +0000 (08:05 +0200)]
unsimplify :)

18 years agosimplify
Stefan Behnel [Thu, 15 May 2008 06:00:59 +0000 (08:00 +0200)]
simplify

18 years agomore test fixes for Py3
Stefan Behnel [Thu, 15 May 2008 06:00:29 +0000 (08:00 +0200)]
more test fixes for Py3

18 years agomore test fixes for Py3
Stefan Behnel [Thu, 15 May 2008 05:19:37 +0000 (07:19 +0200)]
more test fixes for Py3

18 years agomore test fixes for Py3
Stefan Behnel [Wed, 14 May 2008 23:10:24 +0000 (01:10 +0200)]
more test fixes for Py3

18 years agofixes for keyword arg checking
Stefan Behnel [Wed, 14 May 2008 23:10:13 +0000 (01:10 +0200)]
fixes for keyword arg checking

18 years agomore test fixes for Py3
Stefan Behnel [Wed, 14 May 2008 22:49:08 +0000 (00:49 +0200)]
more test fixes for Py3

18 years agolots of test fixes for Py3
Stefan Behnel [Wed, 14 May 2008 22:45:39 +0000 (00:45 +0200)]
lots of test fixes for Py3

18 years agolots of test fixes for Py3
Stefan Behnel [Wed, 14 May 2008 22:30:45 +0000 (00:30 +0200)]
lots of test fixes for Py3

18 years agoreplace the now missing PyNumber_Divide() by PyNumber_TrueDivide()
Stefan Behnel [Wed, 14 May 2008 22:09:18 +0000 (00:09 +0200)]
replace the now missing PyNumber_Divide() by PyNumber_TrueDivide()

18 years agodisable broken 'print' statement for now (PyFile_* went missing)
Stefan Behnel [Wed, 14 May 2008 22:08:38 +0000 (00:08 +0200)]
disable broken 'print' statement for now (PyFile_* went missing)

18 years agotest fix
Stefan Behnel [Wed, 14 May 2008 22:07:57 +0000 (00:07 +0200)]
test fix

18 years agotons of fixes for the test suite: docstrings must be unicode strings to run in Py3...
Stefan Behnel [Wed, 14 May 2008 21:54:22 +0000 (23:54 +0200)]
tons of fixes for the test suite: docstrings must be unicode strings to run in Py3's doctest (obviously...)

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

18 years agounicode re fix
Stefan Behnel [Wed, 14 May 2008 21:54:07 +0000 (23:54 +0200)]
unicode re fix

18 years agoskip off compiler error tests if we don't run the compiler
Stefan Behnel [Wed, 14 May 2008 19:56:17 +0000 (21:56 +0200)]
skip off compiler error tests if we don't run the compiler

18 years ago__setslice__ and __delslice__ were removed in Py3
Stefan Behnel [Wed, 14 May 2008 19:39:24 +0000 (21:39 +0200)]
__setslice__ and __delslice__ were removed in Py3

18 years agomake it explicit in the generated source code what is an identifier string constant...
Stefan Behnel [Wed, 14 May 2008 19:20:08 +0000 (21:20 +0200)]
make it explicit in the generated source code what is an identifier string constant and what is a normal string constant that just happens to get interned

18 years agodocstrings can't have u'abc' literals in Py3
Stefan Behnel [Wed, 14 May 2008 19:18:38 +0000 (21:18 +0200)]
docstrings can't have u'abc' literals in Py3

18 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

18 years agoRFC: constify Cython output all over the place (newbie approach)
Kirill Smelkov [Wed, 14 May 2008 17:16:01 +0000 (21:16 +0400)]
RFC: constify Cython output all over the place  (newbie approach)

You know, when developing code, it is very tedious to look for meaningful
errors and warnings in presence of tons of noise like

    warning: deprecated conversion from string constant to ‘char*’

And you know what? It seems in the next version of gcc, this deprecation
warnings will be turned into errors.

----

Python sources already use 'const' keyword freely, so I think it's time to add
constify bits all over the place.

18 years agoEmit code to guard declarations for this module's public functions.
jek-cythonhg@kleckner.net [Sat, 24 May 2008 00:58:47 +0000 (17:58 -0700)]
Emit code to guard declarations for this module's public functions.

It appears that the machinery is all there to protect the declaration
of inconsistent linkage types (i.e. dllimport vs. dllexport) by using
a guard unique to the pyx file.  This patch simply emits that guard
for the current module to prevent the error "inconsistent linkage types"
on a Windows-based system.

18 years agoFixed iterator raising exception bug.
Dag Sverre Seljebotn [Wed, 14 May 2008 19:58:07 +0000 (21:58 +0200)]
Fixed iterator raising exception bug.

Simply a typo in NextNode...

18 years agoGo back to using nice cnames for identifiers
Robert Bradshaw [Sat, 7 Jun 2008 06:48:09 +0000 (23:48 -0700)]
Go back to using nice cnames for identifiers

18 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

18 years agoForward declaration of extension class in another module
Gregory Ewing [Wed, 14 May 2008 12:34:23 +0000 (00:34 +1200)]
Forward declaration of extension class in another module

+
+    - There is now a way of forward-declaring an extension type into
+      another module. This allows two .pxd files to define extension types
+      that refer to each other without running into circular import problems.
+      For example:
+
+        cimport blarg
+        cdef class blarg.Blarg # Forward declaration
+
+        cdef class Foo:
+          cdef blarg.Blarg blg

18 years agoFix for extracting full module name out of full path name.
Robert Bradshaw [Sun, 8 Jun 2008 00:03:45 +0000 (17:03 -0700)]
Fix for extracting full module name out of full path name.

Sage compiles and -testall reports success.

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

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

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

18 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

18 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

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

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

18 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

18 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

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

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

18 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

18 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

18 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

18 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

18 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

18 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

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

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

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

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

18 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

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

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

18 years agoAdded in wrapping C++ description.
Gabriel Gellner [Sun, 4 May 2008 19:09:20 +0000 (15:09 -0400)]
Added in wrapping C++ description.

18 years agoAdded struct table. Needed to avoid using spanned cells as it breaks the latex output.
Gabriel Gellner [Sun, 4 May 2008 18:44:02 +0000 (14:44 -0400)]
Added struct table. Needed to avoid using spanned cells as it breaks the latex output.

18 years agoFixed TODO: comments in some files. Added documentation TODO.
Gabriel Gellner [Sun, 4 May 2008 18:13:53 +0000 (14:13 -0400)]
Fixed TODO: comments in some files. Added documentation TODO.

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

18 years agoApplied final patch, a reminder to add a table.
Gabriel Gellner [Sat, 3 May 2008 17:47:35 +0000 (13:47 -0400)]
Applied final patch, a reminder to add a table.

18 years agoApplied patches to fix typos. Also added an hgignore, and the .static files needed...
ggellner@basestar [Sat, 3 May 2008 17:24:10 +0000 (13:24 -0400)]
Applied patches to fix typos. Also added an hgignore, and the .static files needed to generate output.

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

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

18 years agoInitial commit
Gabriel Gellner [Fri, 2 May 2008 09:26:39 +0000 (02:26 -0700)]
Initial commit

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

18 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

18 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

18 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 :)

18 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

18 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

18 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

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

18 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

18 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

18 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

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

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

18 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

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

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

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

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

18 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

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

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

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

18 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

18 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

18 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

18 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