cython.git
18 years agomerge
Stefan Behnel [Mon, 25 Feb 2008 05:54:57 +0000 (06:54 +0100)]
merge

18 years agonum -> int for int constants
Robert Bradshaw [Sat, 23 Feb 2008 07:11:38 +0000 (23:11 -0800)]
num -> int for int constants

18 years agofix exception string formatting for Py_ssize_t values: needs %zd instead of %d on...
Stefan Behnel [Sat, 16 Feb 2008 18:15:52 +0000 (19:15 +0100)]
fix exception string formatting for Py_ssize_t values: needs %zd instead of %d on Python >= 2.5

18 years agomake unpacking exception strings look like those generated by Python itself
Stefan Behnel [Sat, 16 Feb 2008 18:12:50 +0000 (19:12 +0100)]
make unpacking exception strings look like those generated by Python itself

18 years agofixes for True/False in compile time expressions; make sure True/False pass as object...
Stefan Behnel [Sat, 16 Feb 2008 17:37:23 +0000 (18:37 +0100)]
fixes for True/False in compile time expressions; make sure True/False pass as objects (not just ints) where possible

18 years agoremoved 'builtin_functions' dict: broke referring to 'unicode' function by name
Stefan Behnel [Sat, 16 Feb 2008 17:27:34 +0000 (18:27 +0100)]
removed 'builtin_functions' dict: broke referring to 'unicode' function by name

18 years agofix for 'raise' decref bug unter Python <= 2.4 in error case
Stefan Behnel [Sat, 16 Feb 2008 12:21:36 +0000 (13:21 +0100)]
fix for 'raise' decref bug unter Python <= 2.4 in error case

18 years agoBump version
Robert Bradshaw [Thu, 14 Feb 2008 01:27:31 +0000 (17:27 -0800)]
Bump version

18 years agoWarning when overriding cdef method with def method. (Perhaps this should be an error?)
Robert Bradshaw [Thu, 14 Feb 2008 01:09:26 +0000 (17:09 -0800)]
Warning when overriding cdef method with def method. (Perhaps this should be an error?)

18 years agoModule-level cpdef functions
Robert Bradshaw [Wed, 13 Feb 2008 12:13:44 +0000 (04:13 -0800)]
Module-level cpdef functions

18 years agoUndo botched api -> pxd
Robert Bradshaw [Wed, 13 Feb 2008 10:58:13 +0000 (02:58 -0800)]
Undo botched api -> pxd

18 years agoCleanup warnings
Robert Bradshaw [Wed, 13 Feb 2008 06:16:30 +0000 (22:16 -0800)]
Cleanup warnings

18 years agoReal fix for builtins caching + coercion bug (as reported by paul.metcalfe@gmail...
Robert Bradshaw [Wed, 13 Feb 2008 05:38:47 +0000 (21:38 -0800)]
Real fix for builtins caching + coercion bug (as reported by paul.metcalfe@gmail.com)

18 years agoCython disregards the c-name for "cdef public" class members
bluecreature@gmail.com [Wed, 13 Feb 2008 04:36:57 +0000 (20:36 -0800)]
Cython disregards the c-name for "cdef public" class members

18 years agoExport pxd functions by default
Robert Bradshaw [Wed, 13 Feb 2008 04:09:14 +0000 (20:09 -0800)]
Export pxd functions by default

18 years agoDon't flatten list comprehension nodes
Robert Bradshaw [Wed, 13 Feb 2008 03:42:28 +0000 (19:42 -0800)]
Don't flatten list comprehension nodes

18 years agoTemporary python object casts OK for numeric types.
Robert Bradshaw [Wed, 13 Feb 2008 03:05:47 +0000 (19:05 -0800)]
Temporary python object casts OK for numeric types.

18 years agoEnable narrowing return type when subclassing
Robert Bradshaw [Wed, 13 Feb 2008 02:08:20 +0000 (18:08 -0800)]
Enable narrowing return type when subclassing

18 years ago...
Robert Bradshaw [Wed, 13 Feb 2008 01:40:28 +0000 (17:40 -0800)]
...

18 years agoError condition compile error on error type
Robert Bradshaw [Wed, 13 Feb 2008 01:40:13 +0000 (17:40 -0800)]
Error condition compile error on error type

18 years agosupport True/False in compile-time statements
Stefan Behnel [Sun, 10 Feb 2008 07:32:43 +0000 (08:32 +0100)]
support True/False in compile-time statements

18 years agofixed NameError
Stefan Behnel [Sun, 10 Feb 2008 07:10:21 +0000 (08:10 +0100)]
fixed NameError

18 years agomerge
Stefan Behnel [Sat, 9 Feb 2008 16:25:17 +0000 (17:25 +0100)]
merge

18 years agoAlways need optional struct.
Robert Bradshaw [Sat, 9 Feb 2008 14:40:27 +0000 (06:40 -0800)]
Always need optional struct.

18 years agohuge cleanup of 'star-args only' unpacking code, incl. bug fixes for memory handling...
Stefan Behnel [Fri, 8 Feb 2008 12:08:27 +0000 (13:08 +0100)]
huge cleanup of 'star-args only' unpacking code, incl. bug fixes for memory handling and non-string keywords

18 years agoAllow a cpdef function to override a cdef function
Robert Bradshaw [Fri, 8 Feb 2008 08:03:24 +0000 (00:03 -0800)]
Allow a cpdef function to override a cdef function

(But not the other way around...)

18 years agoDefault argument literals, better True/False coercion
Robert Bradshaw [Fri, 8 Feb 2008 04:05:38 +0000 (20:05 -0800)]
Default argument literals, better True/False coercion

18 years agoAdd optional args to any cdef overridden function
Robert Bradshaw [Thu, 7 Feb 2008 23:59:58 +0000 (15:59 -0800)]
Add optional args to any cdef overridden function

18 years agoNumber of arguments can grow with overridden cdef functions.
Robert Bradshaw [Thu, 7 Feb 2008 12:00:51 +0000 (04:00 -0800)]
Number of arguments can grow with overridden cdef functions.

18 years agoDefault cdef args via struct
Robert Bradshaw [Thu, 7 Feb 2008 09:46:57 +0000 (01:46 -0800)]
Default cdef args via struct

18 years agocleanup
Stefan Behnel [Thu, 7 Feb 2008 06:17:14 +0000 (07:17 +0100)]
cleanup

18 years agopxd with optional arguments
Robert Bradshaw [Wed, 6 Feb 2008 23:49:48 +0000 (15:49 -0800)]
pxd with optional arguments

18 years agoOptional arguments in cpdef functions
Robert Bradshaw [Wed, 6 Feb 2008 23:11:28 +0000 (15:11 -0800)]
Optional arguments in cpdef functions

18 years agoavoid unpacking for functions that only have star args
Stefan Behnel [Wed, 6 Feb 2008 19:59:38 +0000 (20:59 +0100)]
avoid unpacking for functions that only have star args

18 years agodownstream merge
Stefan Behnel [Sun, 3 Feb 2008 19:55:58 +0000 (20:55 +0100)]
downstream merge

18 years agorefactoring to skip generating arg tuple unpacking code if we know there will be...
Stefan Behnel [Sat, 2 Feb 2008 12:23:00 +0000 (13:23 +0100)]
refactoring to skip generating arg tuple unpacking code if we know there will be keyword arguments

18 years agoCython could generate useless argument tuple parsing code for functions with required...
Stefan Behnel [Sat, 2 Feb 2008 11:35:05 +0000 (12:35 +0100)]
Cython could generate useless argument tuple parsing code for functions with required kw-only args

18 years ago<type?> does type check for extension types
Robert Bradshaw [Sat, 2 Feb 2008 09:18:43 +0000 (01:18 -0800)]
<type?> does type check for extension types

18 years agoPython object pointer cast warnings
Robert Bradshaw [Sat, 2 Feb 2008 09:10:01 +0000 (01:10 -0800)]
Python object pointer cast warnings

18 years agoActual conversion on <type> casts with one side Python
Robert Bradshaw [Sat, 2 Feb 2008 09:07:03 +0000 (01:07 -0800)]
Actual conversion on <type> casts with one side Python

18 years agoRemove function pointer casting restriction
Robert Bradshaw [Sat, 2 Feb 2008 08:33:42 +0000 (00:33 -0800)]
Remove function pointer casting restriction

18 years agoFix cython -v error when no source files given.
Robert Bradshaw [Fri, 1 Feb 2008 21:03:56 +0000 (13:03 -0800)]
Fix cython -v error when no source files given.

Reported by gpk@kochanski.org

18 years agoMangle naming for cleanup function.
Robert Bradshaw [Fri, 1 Feb 2008 19:43:33 +0000 (11:43 -0800)]
Mangle naming for cleanup function.

18 years agofix gcc 2.95 compile issue
Stefan Behnel [Fri, 1 Feb 2008 13:30:17 +0000 (14:30 +0100)]
fix gcc 2.95 compile issue

18 years agoDemos: pyrexc -> cython
Kirill Smelkov [Fri, 1 Feb 2008 10:46:15 +0000 (13:46 +0300)]
Demos: pyrexc -> cython

18 years agoPython/C API .pxi from Eric Huss
Robert Bradshaw [Sun, 30 Mar 2008 10:15:58 +0000 (03:15 -0700)]
Python/C API .pxi from Eric Huss

18 years agomerge
Robert Bradshaw [Sun, 30 Mar 2008 10:14:26 +0000 (03:14 -0700)]
merge

18 years agomore unicode testing, also for null bytes
Stefan Behnel [Thu, 6 Mar 2008 11:11:11 +0000 (12:11 +0100)]
more unicode testing, also for null bytes

18 years agotest fix
Stefan Behnel [Thu, 6 Mar 2008 10:36:52 +0000 (11:36 +0100)]
test fix

18 years agotest runner fixes
Stefan Behnel [Thu, 6 Mar 2008 10:33:07 +0000 (11:33 +0100)]
test runner fixes

18 years agoextensive test case for unicode literals
Stefan Behnel [Thu, 6 Mar 2008 10:16:08 +0000 (11:16 +0100)]
extensive test case for unicode literals

18 years agolittle test for comparing loop code
Stefan Behnel [Thu, 6 Mar 2008 08:27:04 +0000 (09:27 +0100)]
little test for comparing loop code

18 years agogenerate coverage report from 'runtests.py -C' (requires coverage.py)
Stefan Behnel [Sun, 2 Mar 2008 14:37:03 +0000 (15:37 +0100)]
generate coverage report from 'runtests.py -C' (requires coverage.py)

18 years agoPy3k fixes
Stefan Behnel [Sun, 2 Mar 2008 10:59:40 +0000 (11:59 +0100)]
Py3k fixes

18 years agonew tests for 'in' operator
Stefan Behnel [Sat, 16 Feb 2008 18:21:50 +0000 (19:21 +0100)]
new tests for 'in' operator

18 years agotest: too few arguments to unpack
Stefan Behnel [Sat, 16 Feb 2008 18:18:17 +0000 (19:18 +0100)]
test: too few arguments to unpack

18 years agotest fix§
Stefan Behnel [Sat, 16 Feb 2008 17:37:31 +0000 (18:37 +0100)]
test fix§

18 years agocompile-time DEF test
Stefan Behnel [Sat, 16 Feb 2008 16:53:03 +0000 (17:53 +0100)]
compile-time DEF test

18 years agonew tests for various unicode()/str() usage patterns
Stefan Behnel [Sat, 16 Feb 2008 11:33:27 +0000 (12:33 +0100)]
new tests for various unicode()/str() usage patterns

18 years agolocal merge
Robert Bradshaw [Wed, 13 Feb 2008 02:10:48 +0000 (18:10 -0800)]
local merge

18 years agocompile time IF/DEF tests
Stefan Behnel [Sun, 10 Feb 2008 07:34:03 +0000 (08:34 +0100)]
compile time IF/DEF tests

18 years agotest for some problematic **kw use cases
Stefan Behnel [Fri, 8 Feb 2008 12:26:34 +0000 (13:26 +0100)]
test for some problematic **kw use cases

18 years agoextended test for star args in extension functions
Stefan Behnel [Wed, 6 Feb 2008 19:58:19 +0000 (20:58 +0100)]
extended test for star args in extension functions

18 years agomore star args tests
Stefan Behnel [Wed, 6 Feb 2008 18:55:26 +0000 (19:55 +0100)]
more star args tests

18 years agotest case for tuple unpacking of a list comprehension
Stefan Behnel [Wed, 6 Feb 2008 08:47:28 +0000 (09:47 +0100)]
test case for tuple unpacking of a list comprehension

18 years agodisable broken tests for now
Stefan Behnel [Sat, 2 Feb 2008 12:23:14 +0000 (13:23 +0100)]
disable broken tests for now

18 years agotest mixed boolean operations with C types and Python types
Stefan Behnel [Sat, 2 Feb 2008 11:38:13 +0000 (12:38 +0100)]
test mixed boolean operations with C types and Python types

18 years agotest argument unpacking code for extension types and Python types
Stefan Behnel [Sat, 2 Feb 2008 11:36:30 +0000 (12:36 +0100)]
test argument unpacking code for extension types and Python types

18 years agoConversion for python objects on <type> casts
Robert Bradshaw [Sat, 2 Feb 2008 09:06:12 +0000 (01:06 -0800)]
Conversion for python objects on <type> casts

18 years agonew test for 'is None' in Python bool expression
Stefan Behnel [Fri, 1 Feb 2008 19:32:37 +0000 (20:32 +0100)]
new test for 'is None' in Python bool expression

18 years agomake the fastest case 'likely()'
Stefan Behnel [Wed, 23 Jan 2008 22:28:04 +0000 (23:28 +0100)]
make the fastest case 'likely()'

18 years agocleanup, go back to inlining SplitStarArg, as the size overhead is negligeable
Stefan Behnel [Wed, 23 Jan 2008 22:00:58 +0000 (23:00 +0100)]
cleanup, go back to inlining SplitStarArg, as the size overhead is negligeable

18 years agomore empty_tuple usage
Stefan Behnel [Wed, 23 Jan 2008 21:49:17 +0000 (22:49 +0100)]
more empty_tuple usage

18 years agogenerate trivial *args splitting code into function body
Stefan Behnel [Wed, 23 Jan 2008 21:44:07 +0000 (22:44 +0100)]
generate trivial *args splitting code into function body

18 years agoxdecref cleanup of star args only when required (also in error cleanup code)
Stefan Behnel [Wed, 23 Jan 2008 19:54:13 +0000 (20:54 +0100)]
xdecref cleanup of star args only when required (also in error cleanup code)

18 years agoxdecref cleanup of star args only when required
Stefan Behnel [Wed, 23 Jan 2008 19:37:01 +0000 (20:37 +0100)]
xdecref cleanup of star args only when required

18 years agofix kw-only handling in new function parameter unpacking code
Stefan Behnel [Wed, 23 Jan 2008 19:23:49 +0000 (20:23 +0100)]
fix kw-only handling in new function parameter unpacking code

18 years agoFix to prepositional args parsing when self present.
Robert Bradshaw [Wed, 23 Jan 2008 00:23:46 +0000 (16:23 -0800)]
Fix to prepositional args parsing when self present.
Thanks to Stefan Behnel <stefan_ml@behnel.de> for pointing this out.

18 years agotest case fix
Stefan Behnel [Mon, 21 Jan 2008 21:01:58 +0000 (22:01 +0100)]
test case fix

18 years agolocal merge
Stefan Behnel [Sat, 19 Jan 2008 13:03:10 +0000 (14:03 +0100)]
local merge

18 years agoMore efficient prepositional argument parsing.
Robert Bradshaw [Sat, 19 Jan 2008 09:09:30 +0000 (01:09 -0800)]
More efficient prepositional argument parsing.

18 years agomerge
Robert Bradshaw [Fri, 18 Jan 2008 07:04:25 +0000 (23:04 -0800)]
merge

18 years ago...
Robert Bradshaw [Fri, 18 Jan 2008 07:04:16 +0000 (23:04 -0800)]
...

18 years agoFix C++ fix
Robert Bradshaw [Fri, 18 Jan 2008 05:51:21 +0000 (21:51 -0800)]
Fix C++ fix

18 years agowrite stararg utility functions only when they are used
Stefan Behnel [Thu, 17 Jan 2008 22:54:04 +0000 (23:54 +0100)]
write stararg utility functions only when they are used

18 years agotest update
Stefan Behnel [Thu, 17 Jan 2008 22:21:50 +0000 (23:21 +0100)]
test update

18 years agorevert C++ assignment fix as it breaks gcc
Stefan Behnel [Thu, 17 Jan 2008 22:09:13 +0000 (23:09 +0100)]
revert C++ assignment fix as it breaks gcc

18 years agofix tuple unpacking bug
Stefan Behnel [Thu, 17 Jan 2008 21:55:41 +0000 (22:55 +0100)]
fix tuple unpacking bug

18 years agofix tuple unpacking bug
Stefan Behnel [Thu, 17 Jan 2008 21:55:27 +0000 (22:55 +0100)]
fix tuple unpacking bug

18 years agomerge of Robert's changes for 0.9.6.11
Stefan Behnel [Thu, 17 Jan 2008 18:31:05 +0000 (19:31 +0100)]
merge of Robert's changes for 0.9.6.11

18 years agoUpdate manifest
Robert Bradshaw [Thu, 17 Jan 2008 18:29:49 +0000 (10:29 -0800)]
Update manifest

18 years agoUpdate version number
Robert Bradshaw [Thu, 17 Jan 2008 18:07:51 +0000 (10:07 -0800)]
Update version number

18 years agotp_new must always be generated to set the vtab
Robert Bradshaw [Thu, 17 Jan 2008 15:25:08 +0000 (07:25 -0800)]
tp_new must always be generated to set the vtab
but we can get away with skipping intermediate classes if nothing new happens

18 years agoC++ assignment fix
Robert Bradshaw [Thu, 17 Jan 2008 14:30:44 +0000 (06:30 -0800)]
C++ assignment fix

18 years agoAllow trivial __cinit__ that ignores __init__ values for speed.
Robert Bradshaw [Thu, 17 Jan 2008 14:00:27 +0000 (06:00 -0800)]
Allow trivial __cinit__ that ignores __init__ values for speed.
The signatures are no longer required to match if the only argument to __cinit__ is self.

18 years agotp_new, etc. cleanup
Robert Bradshaw [Thu, 17 Jan 2008 13:27:06 +0000 (05:27 -0800)]
tp_new, etc. cleanup

18 years agoOptimize tp_new and tp_dealloc
Robert Bradshaw [Thu, 17 Jan 2008 13:09:49 +0000 (05:09 -0800)]
Optimize tp_new and tp_dealloc

18 years agoFurther optimizations on tp_clear/traverse
Robert Bradshaw [Thu, 17 Jan 2008 12:07:25 +0000 (04:07 -0800)]
Further optimizations on tp_clear/traverse

18 years agoempty tuple optimization
Robert Bradshaw [Thu, 17 Jan 2008 10:08:48 +0000 (02:08 -0800)]
empty tuple optimization

18 years agogeneric constant code
Robert Bradshaw [Thu, 17 Jan 2008 09:34:21 +0000 (01:34 -0800)]
generic constant code