cython.git
15 years agomerge from latest cython-devel
Stefan Behnel [Fri, 11 Sep 2009 21:02:18 +0000 (23:02 +0200)]
merge from latest cython-devel

15 years agosupport conversion between Python byte strings and unsigned char*
Stefan Behnel [Fri, 11 Sep 2009 20:59:36 +0000 (22:59 +0200)]
support conversion between Python byte strings and unsigned char*

15 years agosupport conversion between Python byte strings and unsigned char*
Stefan Behnel [Fri, 11 Sep 2009 20:55:16 +0000 (22:55 +0200)]
support conversion between Python byte strings and unsigned char*

15 years agoenabled working tests
Stefan Behnel [Fri, 11 Sep 2009 19:05:20 +0000 (21:05 +0200)]
enabled working tests

15 years agoenabled working tests
Stefan Behnel [Fri, 11 Sep 2009 19:04:59 +0000 (21:04 +0200)]
enabled working tests

15 years agoenabled working test
Stefan Behnel [Fri, 11 Sep 2009 18:56:22 +0000 (20:56 +0200)]
enabled working test

15 years agoimplemented but disabled test - large C integer constants are left to the users'...
Stefan Behnel [Fri, 11 Sep 2009 18:53:30 +0000 (20:53 +0200)]
implemented but disabled test - large C integer constants are left to the users' care for now

15 years agoenable working test
Stefan Behnel [Fri, 11 Sep 2009 18:22:01 +0000 (20:22 +0200)]
enable working test

15 years agoadded test for ticket 248
Stefan Behnel [Fri, 11 Sep 2009 18:15:16 +0000 (20:15 +0200)]
added test for ticket 248

15 years agoadded test for ticket 248
Stefan Behnel [Fri, 11 Sep 2009 18:15:16 +0000 (20:15 +0200)]
added test for ticket 248

--HG--
rename : tests/broken/cimportfrom.pyx => tests/compile/cimportfrom_T248.pyx

15 years agocdef enums seem to require an analyse_expressions()
Stefan Behnel [Fri, 11 Sep 2009 18:01:09 +0000 (20:01 +0200)]
cdef enums seem to require an analyse_expressions()

15 years agoextended test cases for public enums
Stefan Behnel [Fri, 11 Sep 2009 18:00:09 +0000 (20:00 +0200)]
extended test cases for public enums

15 years agomerge with latest cython-devel
Stefan Behnel [Fri, 11 Sep 2009 17:20:05 +0000 (19:20 +0200)]
merge with latest cython-devel

15 years agoimported patch shrink-int-convert
Robert Bradshaw [Fri, 11 Sep 2009 04:22:34 +0000 (21:22 -0700)]
imported patch shrink-int-convert

15 years agoextern ctypedef integral <-> python object conversion (ticket #333)
Lisandro Dalcin [Thu, 10 Sep 2009 13:50:11 +0000 (10:50 -0300)]
extern ctypedef integral <-> python object conversion (ticket #333)

15 years agoEnable test for T135.
Robert Bradshaw [Fri, 11 Sep 2009 02:58:32 +0000 (19:58 -0700)]
Enable test for T135.

15 years agotest fix for Py 3.1.1
Stefan Behnel [Sat, 22 Aug 2009 14:50:28 +0000 (16:50 +0200)]
test fix for Py 3.1.1

15 years agoenable tests in Py3
Stefan Behnel [Sat, 22 Aug 2009 14:17:44 +0000 (16:17 +0200)]
enable tests in Py3

15 years agoPy3 test fix
Stefan Behnel [Fri, 21 Aug 2009 13:39:25 +0000 (15:39 +0200)]
Py3 test fix

15 years agoCython is basically Py3 clean
Stefan Behnel [Fri, 21 Aug 2009 13:27:01 +0000 (15:27 +0200)]
Cython is basically Py3 clean

15 years agoPy2 bytes handling fix
Stefan Behnel [Fri, 21 Aug 2009 13:15:20 +0000 (15:15 +0200)]
Py2 bytes handling fix

15 years agomerged in latest cython-devel
Stefan Behnel [Fri, 21 Aug 2009 12:54:26 +0000 (14:54 +0200)]
merged in latest cython-devel

15 years agofix string typed compiler directives in Py3
Stefan Behnel [Fri, 21 Aug 2009 12:44:50 +0000 (14:44 +0200)]
fix string typed compiler directives in Py3

15 years agofix test that was broken after merge
Stefan Behnel [Fri, 21 Aug 2009 12:33:25 +0000 (14:33 +0200)]
fix test that was broken after merge

15 years agoPy3 test fixes
Stefan Behnel [Fri, 21 Aug 2009 11:59:25 +0000 (13:59 +0200)]
Py3 test fixes

15 years agofix bytes compile time constants in Py3
Stefan Behnel [Fri, 21 Aug 2009 11:59:12 +0000 (13:59 +0200)]
fix bytes compile time constants in Py3

15 years agoPy3 test fix
Stefan Behnel [Fri, 21 Aug 2009 11:41:10 +0000 (13:41 +0200)]
Py3 test fix

15 years agofix struct handling in Py3
Stefan Behnel [Fri, 21 Aug 2009 11:37:57 +0000 (13:37 +0200)]
fix struct handling in Py3

15 years agofix test exclusion
Stefan Behnel [Fri, 21 Aug 2009 11:30:41 +0000 (13:30 +0200)]
fix test exclusion

15 years agodecode included filenames as we can't handle byte encoded filenames in Py3
Stefan Behnel [Fri, 21 Aug 2009 11:12:27 +0000 (13:12 +0200)]
decode included filenames as we can't handle byte encoded filenames in Py3

15 years agominor cleanup
Stefan Behnel [Fri, 21 Aug 2009 11:10:20 +0000 (13:10 +0200)]
minor cleanup

15 years agoPy3 test fixes
Stefan Behnel [Fri, 21 Aug 2009 10:52:18 +0000 (12:52 +0200)]
Py3 test fixes

15 years agoPy3 fix
Stefan Behnel [Fri, 21 Aug 2009 10:42:10 +0000 (12:42 +0200)]
Py3 fix

15 years agoPy3 test fixes
Stefan Behnel [Fri, 21 Aug 2009 10:35:16 +0000 (12:35 +0200)]
Py3 test fixes

15 years agoPy3 test fixes
Stefan Behnel [Fri, 21 Aug 2009 09:47:37 +0000 (11:47 +0200)]
Py3 test fixes

15 years agoexclude incompatible tests under Py3
Stefan Behnel [Fri, 21 Aug 2009 09:26:29 +0000 (11:26 +0200)]
exclude incompatible tests under Py3

15 years agoPy3 encoding fix
Stefan Behnel [Fri, 21 Aug 2009 09:15:33 +0000 (11:15 +0200)]
Py3 encoding fix

15 years agoPy2.x fix after Py3 char fix ;)
Stefan Behnel [Fri, 21 Aug 2009 08:44:15 +0000 (10:44 +0200)]
Py2.x fix after Py3 char fix ;)

15 years agoproperly handle char values (bytes with length 1) in Py3
Stefan Behnel [Fri, 21 Aug 2009 08:32:23 +0000 (10:32 +0200)]
properly handle char values (bytes with length 1) in Py3

15 years agomake sure we do not break encoded scripts when extracting expected error messages...
Stefan Behnel [Fri, 21 Aug 2009 08:20:11 +0000 (10:20 +0200)]
make sure we do not break encoded scripts when extracting expected error messages in runtests.py

15 years agoPy3 fix
Stefan Behnel [Fri, 21 Aug 2009 07:55:43 +0000 (09:55 +0200)]
Py3 fix

15 years agoPy3 fix
Stefan Behnel [Fri, 21 Aug 2009 07:50:05 +0000 (09:50 +0200)]
Py3 fix

15 years agoPy3 fix
Stefan Behnel [Fri, 21 Aug 2009 07:42:01 +0000 (09:42 +0200)]
Py3 fix

15 years agoPy3 unicode fixes
Stefan Behnel [Fri, 21 Aug 2009 07:38:33 +0000 (09:38 +0200)]
Py3 unicode fixes

15 years ago__cmp__() is dead in Py3, ep+lt should be enough though
Stefan Behnel [Fri, 21 Aug 2009 06:41:53 +0000 (08:41 +0200)]
__cmp__() is dead in Py3, ep+lt should be enough though

15 years agoimport Cython as late as possible
Stefan Behnel [Fri, 21 Aug 2009 06:40:59 +0000 (08:40 +0200)]
import Cython as late as possible

15 years agoPy3.1 fix
Stefan Behnel [Thu, 20 Aug 2009 20:41:37 +0000 (22:41 +0200)]
Py3.1 fix

15 years agosafe a few cycles (~4%) when calling 'in' on dicts
Stefan Behnel [Thu, 20 Aug 2009 20:19:58 +0000 (22:19 +0200)]
safe a few cycles (~4%) when calling 'in' on dicts

15 years agoextended test cases
Stefan Behnel [Thu, 20 Aug 2009 20:01:21 +0000 (22:01 +0200)]
extended test cases

15 years agofix error message
Stefan Behnel [Thu, 20 Aug 2009 19:56:44 +0000 (21:56 +0200)]
fix error message

15 years agofix error message
Stefan Behnel [Thu, 20 Aug 2009 19:56:44 +0000 (21:56 +0200)]
fix error message

15 years agomerge
Stefan Behnel [Wed, 19 Aug 2009 14:48:49 +0000 (16:48 +0200)]
merge

15 years agoextended exec() implementation, mostly copied from Py3.1
Stefan Behnel [Wed, 19 Aug 2009 14:48:34 +0000 (16:48 +0200)]
extended exec() implementation, mostly copied from Py3.1

15 years agocode object support in exec statement
Andrey Plotnikov [Wed, 19 Aug 2009 06:48:24 +0000 (14:48 +0800)]
code object support in exec statement

15 years agomerge
Stefan Behnel [Sat, 8 Aug 2009 18:58:14 +0000 (20:58 +0200)]
merge

15 years agofix switch transform for in-list tests
Stefan Behnel [Sat, 8 Aug 2009 18:57:44 +0000 (20:57 +0200)]
fix switch transform for in-list tests

15 years agocython_freeze for making stand-alone programs
Mark Lodato [Fri, 7 Aug 2009 04:20:43 +0000 (21:20 -0700)]
cython_freeze for making stand-alone programs

15 years agomerge main branch to devel
Robert Bradshaw [Thu, 6 Aug 2009 04:40:50 +0000 (21:40 -0700)]
merge main branch to devel

15 years ago#347 fix: Make numpy.complexX_t use Cython complex
Dag Sverre Seljebotn [Wed, 29 Jul 2009 20:10:31 +0000 (22:10 +0200)]
#347 fix: Make numpy.complexX_t use Cython complex

15 years agonumpy headers in demo setup.py
Robert Bradshaw [Thu, 23 Jul 2009 20:02:28 +0000 (13:02 -0700)]
numpy headers in demo setup.py

15 years agoBetter complex conversion.
Robert Bradshaw [Wed, 22 Jul 2009 15:48:34 +0000 (08:48 -0700)]
Better complex conversion.

15 years agoBetter CYTHON_TRACING macro.
Robert Bradshaw [Tue, 21 Jul 2009 07:34:09 +0000 (00:34 -0700)]
Better CYTHON_TRACING macro.

15 years agofix nogil profiling
Robert Bradshaw [Mon, 20 Jul 2009 23:29:54 +0000 (16:29 -0700)]
fix nogil profiling

15 years agoProfiling test
Robert Bradshaw [Mon, 20 Jul 2009 22:40:26 +0000 (15:40 -0700)]
Profiling test

15 years agoDisable tracing for now.
Robert Bradshaw [Mon, 20 Jul 2009 22:40:24 +0000 (15:40 -0700)]
Disable tracing for now.

15 years agoCython profiling
Robert Bradshaw [Mon, 20 Jul 2009 22:39:57 +0000 (15:39 -0700)]
Cython profiling

15 years agoempty bytes global
Robert Bradshaw [Thu, 16 Jul 2009 09:32:52 +0000 (02:32 -0700)]
empty bytes global

15 years agomore delete tests
Robert Bradshaw [Tue, 14 Jul 2009 07:17:26 +0000 (00:17 -0700)]
more delete tests

15 years agodel item test
Robert Bradshaw [Tue, 14 Jul 2009 07:09:58 +0000 (00:09 -0700)]
del item test

15 years agoFix cython.locals in pxd for pure Python mode.
Robert Bradshaw [Fri, 10 Jul 2009 07:42:48 +0000 (00:42 -0700)]
Fix cython.locals in pxd for pure Python mode.

15 years agofix __future__ division semantics for constant expressions and C integers
Stefan Behnel [Wed, 8 Jul 2009 19:13:14 +0000 (21:13 +0200)]
fix __future__ division semantics for constant expressions and C integers

--HG--
rename : tests/run/future_division.pyx => tests/run/non_future_division.pyx

15 years agofix byte string escaping of '\' in Py2.x (broken by latest Py3 fixes)
Stefan Behnel [Wed, 8 Jul 2009 18:24:13 +0000 (20:24 +0200)]
fix byte string escaping of '\' in Py2.x (broken by latest Py3 fixes)

15 years agoPartial fix for #307, see ticket
Dag Sverre Seljebotn [Tue, 7 Jul 2009 08:07:22 +0000 (10:07 +0200)]
Partial fix for #307, see ticket

15 years agoenable % formatting of byte strings by providing a __str__() special method that...
Stefan Behnel [Mon, 6 Jul 2009 19:42:37 +0000 (21:42 +0200)]
enable % formatting of byte strings by providing a __str__() special method that encodes to unicode

15 years agoenable running the tests in Py3.1
Stefan Behnel [Mon, 6 Jul 2009 19:20:25 +0000 (21:20 +0200)]
enable running the tests in Py3.1

15 years agoUpdated numpy.pxd
Dag Sverre Seljebotn [Mon, 6 Jul 2009 18:16:22 +0000 (20:16 +0200)]
Updated numpy.pxd

15 years agoPy3 fix: make sure byte strings end up in the code as expected (not like >>b'...'<<)
Stefan Behnel [Mon, 6 Jul 2009 15:29:40 +0000 (17:29 +0200)]
Py3 fix: make sure byte strings end up in the code as expected (not like >>b'...'<<)

15 years agomake sure header filenames pass literally into the C code
Stefan Behnel [Mon, 6 Jul 2009 09:51:50 +0000 (11:51 +0200)]
make sure header filenames pass literally into the C code

15 years agoPy3 fixes
Stefan Behnel [Mon, 6 Jul 2009 09:47:35 +0000 (11:47 +0200)]
Py3 fixes

15 years agoPy3 fixes
Stefan Behnel [Sun, 5 Jul 2009 20:07:20 +0000 (22:07 +0200)]
Py3 fixes

15 years agoPy3 fix
Stefan Behnel [Sun, 5 Jul 2009 19:33:36 +0000 (21:33 +0200)]
Py3 fix

15 years agoPy3 fix
Stefan Behnel [Sun, 5 Jul 2009 19:30:51 +0000 (21:30 +0200)]
Py3 fix

15 years agoPy3 fix
Stefan Behnel [Sun, 5 Jul 2009 19:30:32 +0000 (21:30 +0200)]
Py3 fix

15 years agoPy3 2to3 fix
Stefan Behnel [Sun, 5 Jul 2009 19:24:04 +0000 (21:24 +0200)]
Py3 2to3 fix

15 years agofix TreeFragment: parsing works on Unicode streams
Stefan Behnel [Sun, 5 Jul 2009 19:23:05 +0000 (21:23 +0200)]
fix TreeFragment: parsing works on Unicode streams

15 years agoPy3 fix
Stefan Behnel [Sun, 5 Jul 2009 19:08:58 +0000 (21:08 +0200)]
Py3 fix

15 years agoPy3 fixes
Stefan Behnel [Sun, 5 Jul 2009 16:36:10 +0000 (18:36 +0200)]
Py3 fixes

15 years agoPy3 fixes
Stefan Behnel [Sun, 5 Jul 2009 14:12:48 +0000 (16:12 +0200)]
Py3 fixes

15 years agofix constant folding: calculate float values but do not aggregate them into ConstNodes
Stefan Behnel [Sun, 5 Jul 2009 13:35:12 +0000 (15:35 +0200)]
fix constant folding: calculate float values but do not aggregate them into ConstNodes

15 years agorevert typing in Visitor.pxd because of obscure type test problem
Stefan Behnel [Sun, 5 Jul 2009 13:13:04 +0000 (15:13 +0200)]
revert typing in Visitor.pxd because of obscure type test problem

15 years agoenable cdivision switch for 0.12
Stefan Behnel [Sat, 4 Jul 2009 14:00:09 +0000 (16:00 +0200)]
enable cdivision switch for 0.12

15 years agoPy3 code fixes
Stefan Behnel [Sat, 4 Jul 2009 06:08:08 +0000 (08:08 +0200)]
Py3 code fixes

15 years agoonly regenerate Cython's own C sources when the .py files were updated
Stefan Behnel [Fri, 3 Jul 2009 21:49:16 +0000 (23:49 +0200)]
only regenerate Cython's own C sources when the .py files were updated

15 years agounused import
Stefan Behnel [Fri, 3 Jul 2009 20:38:47 +0000 (22:38 +0200)]
unused import

15 years agoPy3 fix
Stefan Behnel [Fri, 3 Jul 2009 20:38:31 +0000 (22:38 +0200)]
Py3 fix

15 years agoreduce code-gen time spent in builtins
Stefan Behnel [Fri, 3 Jul 2009 20:20:16 +0000 (22:20 +0200)]
reduce code-gen time spent in builtins

15 years agoclean up compiled code in Visitor.py
Stefan Behnel [Fri, 3 Jul 2009 19:30:55 +0000 (21:30 +0200)]
clean up compiled code in Visitor.py

15 years agofix declaration in Parsing.pxd
Stefan Behnel [Fri, 3 Jul 2009 19:21:51 +0000 (21:21 +0200)]
fix declaration in Parsing.pxd

15 years agocleanup in Shadow.py: Py_ssize_t is an int_type, nothing else
Stefan Behnel [Fri, 3 Jul 2009 18:57:33 +0000 (20:57 +0200)]
cleanup in Shadow.py: Py_ssize_t is an int_type, nothing else

15 years agofaster call to builtin type()
Stefan Behnel [Fri, 3 Jul 2009 18:31:40 +0000 (20:31 +0200)]
faster call to builtin type()