platform/upstream/python-cython.git
12 years agoMerge pull request #125 from bfroehle/_reserved-user-defined-literal
Robert Bradshaw [Wed, 30 May 2012 20:32:46 +0000 (13:32 -0700)]
Merge pull request #125 from bfroehle/_reserved-user-defined-literal

Fix -Wreserved-user-defined-literal error in C++11.

12 years agoFix -Wreserved-user-defined-literal error in C++11.
Bradley M. Froehle [Wed, 30 May 2012 20:23:50 +0000 (13:23 -0700)]
Fix -Wreserved-user-defined-literal error in C++11.

    error: invalid suffix on literal; C++11 requires a space between literal and identifier
          [-Wreserved-user-defined-literal]
          "Item size of buffer (%"PY_FORMAT_SIZE_T"d byte%s) does not match size of '%s' (%"PY_FORMAT_SIZE_T"d byte%s)",
                                  ^

12 years agoFix some last things in the memoryview docs
Mark Florisson [Mon, 28 May 2012 20:57:31 +0000 (21:57 +0100)]
Fix some last things in the memoryview docs

12 years agoMerge branch 'memoryview-doc-edit' of https://github.com/matthew-brett/cython into...
Mark Florisson [Mon, 28 May 2012 17:45:57 +0000 (18:45 +0100)]
Merge branch 'memoryview-doc-edit' of https://github.com/matthew-brett/cython into memview_docs

12 years agoadd existing extern files to depends list
Robert Bradshaw [Sat, 26 May 2012 17:22:37 +0000 (10:22 -0700)]
add existing extern files to depends list

12 years agoMerge remote-tracking branch 'main/master'
Robert Bradshaw [Sat, 26 May 2012 07:28:26 +0000 (00:28 -0700)]
Merge remote-tracking branch 'main/master'

12 years agocache garbage collection
Robert Bradshaw [Sat, 26 May 2012 04:18:41 +0000 (21:18 -0700)]
cache garbage collection

12 years agocython cache compression
Robert Bradshaw [Sat, 26 May 2012 00:29:15 +0000 (17:29 -0700)]
cython cache compression

12 years agoDOC: rewrite of memoryview doc
Matthew Brett [Fri, 25 May 2012 23:59:02 +0000 (19:59 -0400)]
DOC: rewrite of memoryview doc

Went to town, sorry if I got carried away.

Mark or anyone - I've left a few comments in the ReST for places where I
could not make the particular feature work, or where I wasn't sure on
naming.

12 years agoAdd ccache like caching to Cythonize.
Robert Bradshaw [Fri, 25 May 2012 21:03:27 +0000 (14:03 -0700)]
Add ccache like caching to Cythonize.

12 years agoFix CVarDefNode's in_pxd flag
Mark Florisson [Wed, 23 May 2012 18:27:09 +0000 (19:27 +0100)]
Fix CVarDefNode's in_pxd flag

12 years agoDeclare complex utility codes when used in fused types
Mark Florisson [Wed, 23 May 2012 16:58:07 +0000 (17:58 +0100)]
Declare complex utility codes when used in fused types

12 years agoIssue errors for fused types declarations at module level or cdef class scope
Mark Florisson [Wed, 23 May 2012 16:42:19 +0000 (17:42 +0100)]
Issue errors for fused types declarations at module level or cdef class scope

12 years agocythonize performance improvements for large codebases
Robert Bradshaw [Sat, 12 May 2012 06:24:32 +0000 (23:24 -0700)]
cythonize performance improvements for large codebases

12 years agofix pickle test in Python 3
Robert Bradshaw [Wed, 23 May 2012 11:14:45 +0000 (04:14 -0700)]
fix pickle test in Python 3

12 years agoMore Py3 test fixes.
Robert Bradshaw [Sun, 20 May 2012 07:58:01 +0000 (00:58 -0700)]
More Py3 test fixes.

12 years agoarray fixes for py3
Robert Bradshaw [Sun, 20 May 2012 07:36:43 +0000 (00:36 -0700)]
array fixes for py3

12 years agoArrays use unamed fields, require non-standard (C11) extension.
Robert Bradshaw [Sun, 20 May 2012 07:18:54 +0000 (00:18 -0700)]
Arrays use unamed fields, require non-standard (C11) extension.

12 years agoarrayarray utility code hack
Robert Bradshaw [Sun, 20 May 2012 06:36:37 +0000 (23:36 -0700)]
arrayarray utility code hack

12 years agobuffer access and nogil tests
Robert Bradshaw [Sun, 20 May 2012 06:18:18 +0000 (23:18 -0700)]
buffer access and nogil tests

12 years agoFix array optimization in C++.
Robert Bradshaw [Sun, 20 May 2012 06:08:47 +0000 (23:08 -0700)]
Fix array optimization in C++.

12 years agofix several broken array tests
Robert Bradshaw [Sun, 20 May 2012 06:00:56 +0000 (23:00 -0700)]
fix several broken array tests

12 years agoMerge remote-tracking branch 'andreasvc/master' into arrays
Robert Bradshaw [Sun, 20 May 2012 05:35:06 +0000 (22:35 -0700)]
Merge remote-tracking branch 'andreasvc/master' into arrays

12 years agoPickling tests.
Robert Bradshaw [Sat, 12 May 2012 06:31:29 +0000 (23:31 -0700)]
Pickling tests.

12 years agoupdated test to use clone function.
Andreas van Cranenburgh [Wed, 16 May 2012 19:07:42 +0000 (21:07 +0200)]
updated test to use clone function.
tests pass when compiled and run manually.

12 years agoreplaced reference to .ob_size with .length
Andreas van Cranenburgh [Wed, 16 May 2012 18:39:34 +0000 (20:39 +0200)]
replaced reference to .ob_size with .length

12 years agoDisallow taking address of memoryview slices
Mark Florisson [Wed, 16 May 2012 13:13:17 +0000 (14:13 +0100)]
Disallow taking address of memoryview slices

12 years agoMake is_c/f_contig return a bool
Mark Florisson [Wed, 16 May 2012 11:44:59 +0000 (12:44 +0100)]
Make is_c/f_contig return a bool

12 years agoFix cython.view.array cast step error
Mark Florisson [Wed, 16 May 2012 11:33:50 +0000 (12:33 +0100)]
Fix cython.view.array cast step error

12 years agoMerge pull request #122 from geggo/master
Mark [Wed, 16 May 2012 08:48:33 +0000 (01:48 -0700)]
Merge pull request #122 from geggo/master

fixes typo in memory view validation code

12 years agofixes bug in memoryview validation code for C contiguous buffers.
Gregor Thalhammer [Wed, 16 May 2012 08:10:03 +0000 (10:10 +0200)]
fixes bug in memoryview validation code for C contiguous buffers.

12 years agowork around for broken PyPy distutils build
Stefan Behnel [Tue, 15 May 2012 09:26:37 +0000 (11:26 +0200)]
work around for broken PyPy distutils build

12 years agobetter explanation of OpenMP schedules
Stefan Behnel [Sun, 13 May 2012 12:42:17 +0000 (14:42 +0200)]
better explanation of OpenMP schedules

12 years agoFix fused function __doc__ descriptor
Mark Florisson [Sun, 13 May 2012 11:19:59 +0000 (12:19 +0100)]
Fix fused function __doc__ descriptor

12 years agofix numpy_test for numpy < 1.5
Mark Florisson [Sat, 12 May 2012 21:18:25 +0000 (22:18 +0100)]
fix numpy_test for numpy < 1.5

12 years agofix link in docs
Stefan Behnel [Sat, 12 May 2012 10:39:24 +0000 (12:39 +0200)]
fix link in docs

12 years agonew doc page on porting to PyPy
Stefan Behnel [Sat, 12 May 2012 10:17:23 +0000 (12:17 +0200)]
new doc page on porting to PyPy

12 years agomacro fix for Py2.4 in C++ mode
Stefan Behnel [Sat, 12 May 2012 06:35:52 +0000 (08:35 +0200)]
macro fix for Py2.4 in C++ mode

12 years agoPy3 test fix
Stefan Behnel [Sat, 12 May 2012 06:23:32 +0000 (08:23 +0200)]
Py3 test fix

12 years agomore correct fake implementation of PyNumber_Index() and PyIndex_Check() for Py2.4
Stefan Behnel [Sat, 12 May 2012 05:32:32 +0000 (07:32 +0200)]
more correct fake implementation of PyNumber_Index() and PyIndex_Check() for Py2.4

12 years agofix char* coercion test
Stefan Behnel [Fri, 11 May 2012 20:16:27 +0000 (22:16 +0200)]
fix char* coercion test

12 years agofix C compiler warning about unused utility function
Stefan Behnel [Fri, 11 May 2012 12:35:13 +0000 (14:35 +0200)]
fix C compiler warning about unused utility function

12 years agoAnalyze fused declaration code in the global scope
Mark Florisson [Fri, 11 May 2012 10:59:52 +0000 (11:59 +0100)]
Analyze fused declaration code in the global scope

12 years agolet the parser detect '*a = ...' and provide a helpful error message
Stefan Behnel [Fri, 11 May 2012 12:08:04 +0000 (14:08 +0200)]
let the parser detect '*a = ...' and provide a helpful error message

12 years agoadditional test case for extended unpacking
Stefan Behnel [Fri, 11 May 2012 12:07:58 +0000 (14:07 +0200)]
additional test case for extended unpacking

12 years agoremoved unused utility code
Stefan Behnel [Fri, 11 May 2012 11:01:34 +0000 (13:01 +0200)]
removed unused utility code

12 years agoMerge pull request #117 from markflorisson88/_newaxis
Mark [Fri, 11 May 2012 10:50:35 +0000 (03:50 -0700)]
Merge pull request #117 from markflorisson88/_newaxis

Newaxis support for memoryview slices & avoid taking address of memoryviews for utility functions

12 years agoDon't allow more dimensions than buffer_max_dims
Mark Florisson [Sun, 6 May 2012 17:29:53 +0000 (18:29 +0100)]
Don't allow more dimensions than buffer_max_dims

12 years agoAdd some documentation for newaxis indexing
Mark Florisson [Sun, 6 May 2012 15:02:58 +0000 (16:02 +0100)]
Add some documentation for newaxis indexing

12 years agoSupport newaxis indexing for memoryview slices
Mark Florisson [Sat, 5 May 2012 16:15:48 +0000 (17:15 +0100)]
Support newaxis indexing for memoryview slices
    todo: support memoryview object newaxis indexing

12 years agoAvoid taking address of memoryviews to enable C compiler optimizations in user code
Mark Florisson [Sat, 5 May 2012 12:29:28 +0000 (13:29 +0100)]
Avoid taking address of memoryviews to enable C compiler optimizations in user code

12 years agoMerge pull request #121 from scoder/_minor_fused_cleanup
Mark [Fri, 11 May 2012 10:45:27 +0000 (03:45 -0700)]
Merge pull request #121 from scoder/_minor_fused_cleanup

minor fused cleanups

12 years agofix fused types in PyPy by using a less aggressive setitem optimisation on lists...
Stefan Behnel [Fri, 11 May 2012 09:14:20 +0000 (11:14 +0200)]
fix fused types in PyPy by using a less aggressive setitem optimisation on lists for it

12 years agoreduce runtime overhead for 'dest_sig' variable setup
Stefan Behnel [Fri, 11 May 2012 09:01:00 +0000 (11:01 +0200)]
reduce runtime overhead for 'dest_sig' variable setup

12 years agoreduce code overhead for fused cpdef signature matching code
Stefan Behnel [Fri, 11 May 2012 08:31:52 +0000 (10:31 +0200)]
reduce code overhead for fused cpdef signature matching code

12 years agoremove useless code from fused types dispatch
Stefan Behnel [Fri, 11 May 2012 06:23:09 +0000 (08:23 +0200)]
remove useless code from fused types dispatch

12 years agofix compiler crash in declaration analysis
Stefan Behnel [Fri, 11 May 2012 05:23:02 +0000 (07:23 +0200)]
fix compiler crash in declaration analysis

12 years agoadd newline to end of file
Stefan Behnel [Fri, 11 May 2012 05:07:51 +0000 (07:07 +0200)]
add newline to end of file

12 years agoRevert "implement __hash__() and __eq__() for ctypedefs by delegating to the base...
Mark Florisson [Thu, 10 May 2012 19:14:02 +0000 (20:14 +0100)]
Revert "implement __hash__() and __eq__() for ctypedefs by delegating to the base type"

    This breaks comparing typedef types and results
    in funky things such as getting temporaries of
    different types.

This reverts commit e3838e42c4b6f67f180d06b8cd75566f3380ab95.

12 years agoMerge pull request #115 from markflorisson88/_fused_dispatch_rebased
Mark [Thu, 10 May 2012 18:32:24 +0000 (11:32 -0700)]
Merge pull request #115 from markflorisson88/_fused_dispatch_rebased

fused runtime dispatch for buffers

12 years agoMerge pull request #120 from vitek/_type_inference
scoder [Thu, 10 May 2012 17:47:27 +0000 (10:47 -0700)]
Merge pull request #120 from vitek/_type_inference

Infer variable as pyobject when del-ed, fix #768

12 years agominor code simplifications and fixes in printing utility code
Stefan Behnel [Thu, 10 May 2012 11:25:46 +0000 (13:25 +0200)]
minor code simplifications and fixes in printing utility code

12 years agominor beautifications in utility code file
Stefan Behnel [Thu, 10 May 2012 11:13:02 +0000 (13:13 +0200)]
minor beautifications in utility code file

12 years agoFix w_uninitilized_del testcase, now inferred as python object
Vitja Makarov [Wed, 9 May 2012 14:11:39 +0000 (18:11 +0400)]
Fix w_uninitilized_del testcase, now inferred as python object

12 years agoInfer variable as pyobject when del-ed, fix #768
Vitja Makarov [Wed, 9 May 2012 12:36:42 +0000 (16:36 +0400)]
Infer variable as pyobject when del-ed, fix #768

12 years agoprint: Do Py_INCREF() before using stdout
Vitja Makarov [Wed, 9 May 2012 19:08:44 +0000 (23:08 +0400)]
print: Do Py_INCREF() before using stdout

12 years agoMove Printing functions to Printing.c
Vitja Makarov [Wed, 9 May 2012 16:55:06 +0000 (20:55 +0400)]
Move Printing functions to Printing.c

12 years agoimproved pure mode docs on function decorators
Stefan Behnel [Thu, 10 May 2012 08:06:55 +0000 (10:06 +0200)]
improved pure mode docs on function decorators

12 years agoMerge pull request #119 from markflorisson88/_nonecheck
Mark [Wed, 9 May 2012 13:22:45 +0000 (06:22 -0700)]
Merge pull request #119 from markflorisson88/_nonecheck

Refactor none checking, allow nogil exceptions, nogil memoryview slice None comparison

12 years agoUse PyErr_Format to format attribute names
Mark Florisson [Wed, 9 May 2012 12:22:29 +0000 (13:22 +0100)]
Use PyErr_Format to format attribute names

12 years agoAllow 'not None' declaration for memoryview slice arguments
Mark Florisson [Wed, 9 May 2012 11:58:03 +0000 (12:58 +0100)]
Allow 'not None' declaration for memoryview slice arguments

12 years agoAdd cast to PyObject * for nonecheck
Mark Florisson [Wed, 9 May 2012 11:45:27 +0000 (12:45 +0100)]
Add cast to PyObject * for nonecheck

12 years agoAllow nogil None checking for memoryview slices
Mark Florisson [Wed, 9 May 2012 11:41:24 +0000 (12:41 +0100)]
Allow nogil None checking for memoryview slices

12 years agoAdd nogil nonecheck tests (don't segfault)
Mark Florisson [Wed, 9 May 2012 11:10:21 +0000 (12:10 +0100)]
Add nogil nonecheck tests (don't segfault)

12 years agoRefactor None checking code -- use NoneCheckNode everywhere
Mark Florisson [Wed, 9 May 2012 11:06:50 +0000 (12:06 +0100)]
Refactor None checking code -- use NoneCheckNode everywhere

12 years agoreenabled NumPy test to see if it works now
Stefan Behnel [Wed, 9 May 2012 09:02:08 +0000 (11:02 +0200)]
reenabled NumPy test to see if it works now

12 years agoless aggressive callable() optimisation in Py2
Stefan Behnel [Wed, 9 May 2012 07:30:05 +0000 (09:30 +0200)]
less aggressive callable() optimisation in Py2

12 years agoMerge pull request #118 from vitek/_markassignments
scoder [Tue, 8 May 2012 11:36:48 +0000 (04:36 -0700)]
Merge pull request #118 from vitek/_markassignments

Use assignments collected by CF for type inference

12 years agomark_forloop_target: backport recent changes to MarkAssignments
Vitja Makarov [Tue, 8 May 2012 07:27:06 +0000 (11:27 +0400)]
mark_forloop_target: backport recent changes to MarkAssignments

12 years agoFix scalar slice assignment with different ndim than source object
Mark Florisson [Tue, 8 May 2012 09:10:07 +0000 (10:10 +0100)]
Fix scalar slice assignment with different ndim than source object

12 years agoRename MarkAssignments to MarkParallelAssignments
Vitja Makarov [Mon, 7 May 2012 20:32:08 +0000 (00:32 +0400)]
Rename MarkAssignments to MarkParallelAssignments

12 years agoTypeInference: use CF collected assignments
Vitja Makarov [Mon, 7 May 2012 20:31:48 +0000 (00:31 +0400)]
TypeInference: use CF collected assignments

12 years agoControlFlowAnalysis: be comaptible with MarkAssignments
Vitja Makarov [Mon, 7 May 2012 16:35:28 +0000 (20:35 +0400)]
ControlFlowAnalysis: be comaptible with MarkAssignments

12 years agoimplement two-args enumerate() with counter start value
Stefan Behnel [Tue, 8 May 2012 07:34:28 +0000 (09:34 +0200)]
implement two-args enumerate() with counter start value

12 years agoError message fix for very old/new Python versions.
Robert Bradshaw [Tue, 8 May 2012 07:29:31 +0000 (00:29 -0700)]
Error message fix for very old/new Python versions.

12 years agoFix error tests.
Robert Bradshaw [Tue, 8 May 2012 07:09:23 +0000 (00:09 -0700)]
Fix error tests.

12 years agoallow 'not None' declaration on buffer arguments
Stefan Behnel [Mon, 7 May 2012 10:41:03 +0000 (12:41 +0200)]
allow 'not None' declaration on buffer arguments

12 years agominor code cleanup
Stefan Behnel [Mon, 7 May 2012 09:58:53 +0000 (11:58 +0200)]
minor code cleanup

12 years agofix output in cythonize()
Stefan Behnel [Mon, 7 May 2012 09:55:09 +0000 (11:55 +0200)]
fix output in cythonize()

12 years agomoved doctests to individual functions.
Andreas van Cranenburgh [Sun, 6 May 2012 22:41:41 +0000 (00:41 +0200)]
moved doctests to individual functions.

12 years agofix output in cythonize()
Stefan Behnel [Sun, 6 May 2012 19:35:33 +0000 (21:35 +0200)]
fix output in cythonize()

12 years agominor fixes in parallelism docs
Stefan Behnel [Sun, 6 May 2012 12:47:06 +0000 (14:47 +0200)]
minor fixes in parallelism docs

12 years agoFix MemoryViewSliceType's specialize method
Mark Florisson [Sun, 6 May 2012 12:07:12 +0000 (13:07 +0100)]
Fix MemoryViewSliceType's specialize method

12 years agoChange unsigned to Py_ssize_t, removed Py_UNICODE declaration.
Andreas van Cranenburgh [Sun, 6 May 2012 08:49:59 +0000 (10:49 +0200)]
Change unsigned to Py_ssize_t, removed Py_UNICODE declaration.

12 years agofix multi-threaded cythonize
Robert Bradshaw [Sun, 6 May 2012 04:51:28 +0000 (21:51 -0700)]
fix multi-threaded cythonize

12 years agopackage and module names must be str
Robert Bradshaw [Sun, 6 May 2012 04:38:24 +0000 (21:38 -0700)]
package and module names must be str

12 years agoFix ambiguous overload scoring error
Mark Florisson [Fri, 4 May 2012 20:16:26 +0000 (21:16 +0100)]
Fix ambiguous overload scoring error

12 years agoMerge pull request #116 from retep/gitattribute-doc
Robert Bradshaw [Sat, 5 May 2012 04:23:26 +0000 (21:23 -0700)]
Merge pull request #116 from retep/gitattribute-doc

Add __getattribute__ to documentation.

12 years agoRemove with statement future import
Mark Florisson [Fri, 4 May 2012 11:25:31 +0000 (12:25 +0100)]
Remove with statement future import

12 years agoAdd __getattribute__ to documentation.
Peter Todd [Fri, 4 May 2012 04:59:58 +0000 (00:59 -0400)]
Add __getattribute__ to documentation.