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

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

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

16 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

16 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...)

16 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

16 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

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

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

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

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

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

16 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

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

16 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

16 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

16 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

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

16 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

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

16 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

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

16 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

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

16 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

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

16 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

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

16 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

16 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

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

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

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

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

16 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

16 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

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

16 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

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

16 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

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

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

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

16 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

16 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

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

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

16 years agoMerge Stefan Behnel's work.
Robert Bradshaw [Thu, 17 Jan 2008 09:01:23 +0000 (01:01 -0800)]
Merge Stefan Behnel's work.

16 years agotypo
kayhayen@gmx.de [Thu, 17 Jan 2008 08:24:01 +0000 (00:24 -0800)]
typo

16 years agoWarning on ++x and --x
Robert Bradshaw [Thu, 17 Jan 2008 08:20:03 +0000 (00:20 -0800)]
Warning on ++x and --x

16 years agocleanup
Stefan Behnel [Wed, 16 Jan 2008 07:44:13 +0000 (08:44 +0100)]
cleanup

16 years agominor annotation additions
Robert Bradshaw [Wed, 16 Jan 2008 06:54:00 +0000 (22:54 -0800)]
minor annotation additions

16 years agoGetStarArgs: separate out keyword handling, generate specific code for functions...
Stefan Behnel [Tue, 15 Jan 2008 22:20:02 +0000 (23:20 +0100)]
GetStarArgs: separate out keyword handling, generate specific code for functions with or without any combination of *args and **kwargs

16 years agoArgument parsing error handling
Robert Bradshaw [Tue, 15 Jan 2008 21:49:48 +0000 (13:49 -0800)]
Argument parsing error handling

16 years agoAnnotation work
Robert Bradshaw [Tue, 15 Jan 2008 21:21:14 +0000 (13:21 -0800)]
Annotation work

16 years agofix pre-import (broke with new Pyrex builtin code)
Robert Bradshaw [Tue, 15 Jan 2008 20:11:37 +0000 (12:11 -0800)]
fix pre-import (broke with new Pyrex builtin code)

16 years agosimplified __Pyx_GetStarArg(), moved more intelligence into the generator
Stefan Behnel [Tue, 15 Jan 2008 13:44:59 +0000 (14:44 +0100)]
simplified __Pyx_GetStarArg(), moved more intelligence into the generator

16 years agosplit up __Pyx_GetStarArgs() into two separate functions for *args and **kwargs to...
Stefan Behnel [Tue, 15 Jan 2008 11:35:23 +0000 (12:35 +0100)]
split up __Pyx_GetStarArgs() into two separate functions for *args and **kwargs to prepare their independent use

16 years agouse PyObject_Call() instead of _CallObject() just as Python calls it internally,...
Stefan Behnel [Mon, 14 Jan 2008 11:35:47 +0000 (12:35 +0100)]
use PyObject_Call() instead of _CallObject() just as Python calls it internally, speedup of about 5%

16 years agocleanup and faster kw arg splitting in __Pyx_GetStarArgs
Stefan Behnel [Mon, 14 Jan 2008 10:18:19 +0000 (11:18 +0100)]
cleanup and faster kw arg splitting in __Pyx_GetStarArgs

16 years agodivert tp_clear()/tp_traverse() to parent type if type has no object attributes
Stefan Behnel [Sun, 13 Jan 2008 17:51:38 +0000 (18:51 +0100)]
divert tp_clear()/tp_traverse() to parent type if type has no object attributes

16 years agoreset to None instead of NULL in tp_clear()
Stefan Behnel [Sun, 13 Jan 2008 09:11:07 +0000 (10:11 +0100)]
reset to None instead of NULL in tp_clear()

16 years agofix tp_clear() according to Python docs: zero out member pointer before decrefing...
Stefan Behnel [Sat, 12 Jan 2008 20:33:30 +0000 (21:33 +0100)]
fix tp_clear() according to Python docs: zero out member pointer before decrefing its content

16 years agoraise compiler error for 'cdef readonly class'
Stefan Behnel [Sat, 12 Jan 2008 13:45:03 +0000 (14:45 +0100)]
raise compiler error for 'cdef readonly class'

16 years agoonly generate tp_clear/traverse functions if type supports GC
Stefan Behnel [Sat, 12 Jan 2008 10:32:19 +0000 (11:32 +0100)]
only generate tp_clear/traverse functions if type supports GC

16 years agoonly reference type GC functions in extension type if GC support is required
Stefan Behnel [Sat, 12 Jan 2008 10:19:56 +0000 (11:19 +0100)]
only reference type GC functions in extension type if GC support is required

16 years agofix subclassing non-GC types like 'unicode'
Stefan Behnel [Wed, 9 Jan 2008 22:28:26 +0000 (23:28 +0100)]
fix subclassing non-GC types like 'unicode'

16 years agoBacked out changeset 4a6021b8a18c
Stefan Behnel [Wed, 9 Jan 2008 22:26:01 +0000 (23:26 +0100)]
Backed out changeset 4a6021b8a18c
there is a better way to do that

16 years agofix subclassing non-GC types like 'unicode'
Stefan Behnel [Wed, 9 Jan 2008 22:15:09 +0000 (23:15 +0100)]
fix subclassing non-GC types like 'unicode'

16 years agoanother Distutils fix: keep source directory as target if not requested otherwise
Stefan Behnel [Tue, 1 Jan 2008 09:52:53 +0000 (10:52 +0100)]
another Distutils fix: keep source directory as target if not requested otherwise

16 years agomerge of 0.9.6.10.1
Stefan Behnel [Tue, 1 Jan 2008 09:40:46 +0000 (10:40 +0100)]
merge of 0.9.6.10.1

16 years agoFatal typo fix
Robert Bradshaw [Mon, 31 Dec 2007 22:43:57 +0000 (14:43 -0800)]
Fatal typo fix

16 years agoMACOSX_DEPLOYMENT_TARGET fix for OS X 10.5
Brian Granger [Mon, 31 Dec 2007 19:53:07 +0000 (11:53 -0800)]
MACOSX_DEPLOYMENT_TARGET fix for OS X 10.5

16 years agoFix bug for python targets in for...from loops, allow non-integer numeric arguments.
Robert Bradshaw [Mon, 31 Dec 2007 19:13:26 +0000 (11:13 -0800)]
Fix bug for python targets in for...from loops, allow non-integer numeric arguments.

16 years agoC target directory fix for build_ext
Stefan Behnel [Mon, 31 Dec 2007 13:24:13 +0000 (14:24 +0100)]
C target directory fix for build_ext

16 years agomerged changes from 0.9.6.10
Stefan Behnel [Sat, 29 Dec 2007 21:58:11 +0000 (22:58 +0100)]
merged changes from 0.9.6.10

16 years agoCmd line option for convert-range, version number
Robert Bradshaw [Sat, 29 Dec 2007 18:10:05 +0000 (10:10 -0800)]
Cmd line option for convert-range, version number

17 years agofix for memory leak when using keyword-only arguments
Stefan Behnel [Wed, 19 Dec 2007 10:51:57 +0000 (11:51 +0100)]
fix for memory leak when using keyword-only arguments

17 years agokeyword-only arguments require __Pyx_GetStarArgs() function
Stefan Behnel [Wed, 19 Dec 2007 09:28:51 +0000 (10:28 +0100)]
keyword-only arguments require __Pyx_GetStarArgs() function

17 years agokeyword-only arguments require __Pyx_GetStarArgs() function
Stefan Behnel [Wed, 19 Dec 2007 09:28:51 +0000 (10:28 +0100)]
keyword-only arguments require __Pyx_GetStarArgs() function

17 years agoOverflow code (Ondrej suggested a much better way)
Robert Bradshaw [Wed, 12 Dec 2007 20:34:41 +0000 (12:34 -0800)]
Overflow code (Ondrej suggested a much better way)

17 years agoTypo fix suggested by Ondrej Certik
Robert Bradshaw [Wed, 12 Dec 2007 20:02:49 +0000 (12:02 -0800)]
Typo fix suggested by Ondrej Certik

17 years ago(Optionally) mutate range into for..from loops.
Robert Bradshaw [Wed, 12 Dec 2007 10:26:50 +0000 (02:26 -0800)]
(Optionally) mutate range into for..from loops.

17 years agoDue to occasional issues with cleanup on exit, cleanup now disabled by default.
Robert Bradshaw [Mon, 10 Dec 2007 20:23:52 +0000 (12:23 -0800)]
Due to occasional issues with cleanup on exit, cleanup now disabled by default.

17 years agoPyrex type conversion with overflow check for all int types.
Robert Bradshaw [Wed, 5 Dec 2007 22:38:25 +0000 (14:38 -0800)]
Pyrex type conversion with overflow check for all int types.

17 years agofixed broken call to compiler error function
Stefan Behnel [Sun, 2 Dec 2007 11:07:35 +0000 (12:07 +0100)]
fixed broken call to compiler error function

17 years agoRemove redundant marking code
Robert Bradshaw [Thu, 29 Nov 2007 08:21:59 +0000 (00:21 -0800)]
Remove redundant marking code

17 years agoFix classmethod for non-cdef classes.
Robert Bradshaw [Thu, 29 Nov 2007 08:09:42 +0000 (00:09 -0800)]
Fix classmethod for non-cdef classes.

17 years agomerge of Cython 0.9.6.9
Stefan Behnel [Sat, 24 Nov 2007 09:54:22 +0000 (10:54 +0100)]
merge of Cython 0.9.6.9

17 years agoChange version number
Robert Bradshaw [Wed, 21 Nov 2007 18:30:09 +0000 (10:30 -0800)]
Change version number

17 years agoAdd annotate file for html output
Robert Bradshaw [Sun, 18 Nov 2007 08:16:43 +0000 (00:16 -0800)]
Add annotate file for html output

17 years agoHTML source annotation module
Robert Bradshaw [Fri, 16 Nov 2007 21:58:58 +0000 (13:58 -0800)]
HTML source annotation module

17 years agoFix agreement of cpdef functions and pxd files
Robert Bradshaw [Sun, 11 Nov 2007 04:13:45 +0000 (20:13 -0800)]
Fix agreement of cpdef functions and pxd files

17 years agomerge of 0.9.6.8
Stefan Behnel [Fri, 9 Nov 2007 06:53:09 +0000 (07:53 +0100)]
merge of 0.9.6.8

17 years agoignore METH_COEXIST for python < 2.4
Robert Bradshaw [Wed, 7 Nov 2007 17:58:50 +0000 (09:58 -0800)]
ignore METH_COEXIST for python < 2.4

17 years agodocstrings for special methods and cpdef functions
Robert Bradshaw [Wed, 7 Nov 2007 17:48:16 +0000 (09:48 -0800)]
docstrings for special methods and cpdef functions

17 years agoRe: Disabling docstrings in generated .so?
"Gustavo Sverzut Barbieri" [Wed, 7 Nov 2007 17:20:20 +0000 (09:20 -0800)]
Re: Disabling docstrings in generated .so?

17 years agoMove assert exception object creation inside assert if block
Robert Bradshaw [Thu, 1 Nov 2007 22:46:52 +0000 (15:46 -0700)]
Move assert exception object creation inside assert if block

17 years agoVersion number change
Robert Bradshaw [Thu, 1 Nov 2007 09:55:35 +0000 (02:55 -0700)]
Version number change

17 years agomake overridable a type-level property, now overriding functions must agree
Robert Bradshaw [Thu, 1 Nov 2007 09:45:45 +0000 (02:45 -0700)]
make overridable a type-level property, now overriding functions must agree