platform/upstream/python-cython.git
12 years agoadded doc section on 'const char*' and friends, use sphinx annotations for C types...
Stefan Behnel [Fri, 29 Jun 2012 11:26:58 +0000 (13:26 +0200)]
added doc section on 'const char*' and friends, use sphinx annotations for C types in strings.rst

12 years agominor doc formatting fix
Stefan Behnel [Thu, 28 Jun 2012 21:39:46 +0000 (23:39 +0200)]
minor doc formatting fix

12 years agoremoved outdated doc section on missing C++ inheritance support
Stefan Behnel [Thu, 28 Jun 2012 21:38:35 +0000 (23:38 +0200)]
removed outdated doc section on missing C++ inheritance support

12 years agomoved doctests from module docstring into test functions
Stefan Behnel [Thu, 28 Jun 2012 21:36:41 +0000 (23:36 +0200)]
moved doctests from module docstring into test functions

12 years agodoc paragraph on properly handling exceptions from C++ constructors
Stefan Behnel [Thu, 28 Jun 2012 21:07:00 +0000 (23:07 +0200)]
doc paragraph on properly handling exceptions from C++ constructors

12 years agoadded test for stack allocated C++ object
Stefan Behnel [Thu, 28 Jun 2012 17:15:21 +0000 (19:15 +0200)]
added test for stack allocated C++ object

12 years agoMerge pull request #135 from robertwb/bang
scoder [Thu, 28 Jun 2012 12:16:33 +0000 (05:16 -0700)]
Merge pull request #135 from robertwb/bang

Cython bang operator overloading.

12 years agoUse existing Python not operator for !.
Robert Bradshaw [Thu, 28 Jun 2012 09:53:25 +0000 (02:53 -0700)]
Use existing Python not operator for !.

12 years agominor code cleanup in parser
Stefan Behnel [Thu, 28 Jun 2012 09:29:20 +0000 (11:29 +0200)]
minor code cleanup in parser

12 years agoduplicate !
Robert Bradshaw [Thu, 28 Jun 2012 09:05:17 +0000 (02:05 -0700)]
duplicate !

12 years agoCython bang operator overloading.
Robert Bradshaw [Thu, 28 Jun 2012 08:45:11 +0000 (01:45 -0700)]
Cython bang operator overloading.

12 years agominor doc clarification in C++ chapter
Stefan Behnel [Thu, 28 Jun 2012 07:27:36 +0000 (09:27 +0200)]
minor doc clarification in C++ chapter

--HG--
extra : rebase_source : 410f9adcda3afa4a12bb25794f24c1fb96601608

12 years agoC++ class member test.
Robert Bradshaw [Wed, 27 Jun 2012 23:26:54 +0000 (16:26 -0700)]
C++ class member test.

12 years agoAllow no-arg constructor C++ classes as extension class members.
Robert Bradshaw [Wed, 27 Jun 2012 21:45:31 +0000 (14:45 -0700)]
Allow no-arg constructor C++ classes as extension class members.

12 years agomore rst fixes
Stefan Behnel [Wed, 27 Jun 2012 21:35:06 +0000 (23:35 +0200)]
more rst fixes

12 years agodoc note: for-from loop syntax is discouraged
Stefan Behnel [Wed, 27 Jun 2012 21:28:22 +0000 (23:28 +0200)]
doc note: for-from loop syntax is discouraged

12 years agoclean up doc section on bint
Stefan Behnel [Wed, 27 Jun 2012 21:27:41 +0000 (23:27 +0200)]
clean up doc section on bint

12 years agofix and clean up compressed source file caching
Stefan Behnel [Wed, 27 Jun 2012 21:14:17 +0000 (23:14 +0200)]
fix and clean up compressed source file caching

12 years agoComment out alpha pypy environment from buildbot.
Robert Bradshaw [Wed, 27 Jun 2012 16:36:32 +0000 (09:36 -0700)]
Comment out alpha pypy environment from buildbot.

12 years agobetter ordering of cache files
Robert Bradshaw [Sat, 23 Jun 2012 09:41:33 +0000 (02:41 -0700)]
better ordering of cache files

12 years agoMake cache dir if it doesn't yet exist.
Robert Bradshaw [Sat, 23 Jun 2012 09:39:53 +0000 (02:39 -0700)]
Make cache dir if it doesn't yet exist.

12 years agoMerge pull request #131 from msabramo/testing
Robert Bradshaw [Wed, 27 Jun 2012 16:35:41 +0000 (09:35 -0700)]
Merge pull request #131 from msabramo/testing

Add support for tox (http://tox.testrun.org/) and Travis CI (http://travis-ci.org/)

12 years agoMerge pull request #129 from dhirschfeld/master
Robert Bradshaw [Wed, 27 Jun 2012 16:09:49 +0000 (09:09 -0700)]
Merge pull request #129 from dhirschfeld/master

Fixed a vcvarsall.bat error on win32/Py2.7 when trying to compile with mingw.

12 years agorst fixes in docs
Stefan Behnel [Wed, 27 Jun 2012 14:05:21 +0000 (16:05 +0200)]
rst fixes in docs

12 years agorst fixes in docs
Stefan Behnel [Wed, 27 Jun 2012 13:37:43 +0000 (15:37 +0200)]
rst fixes in docs

12 years agoupdated array.array section in memoryview docs
Stefan Behnel [Wed, 27 Jun 2012 13:04:28 +0000 (15:04 +0200)]
updated array.array section in memoryview docs

12 years agoadded array.array tests for buffer interface and memory views
Stefan Behnel [Wed, 27 Jun 2012 12:55:42 +0000 (14:55 +0200)]
added array.array tests for buffer interface and memory views

12 years agomake declarations of arrayarray.h functions 'static' as they are only used internally...
Stefan Behnel [Wed, 27 Jun 2012 12:53:04 +0000 (14:53 +0200)]
make declarations of arrayarray.h functions 'static' as they are only used internally as utility code

12 years agofix C compiler warning about unused variable in test code
Stefan Behnel [Wed, 27 Jun 2012 12:29:46 +0000 (14:29 +0200)]
fix C compiler warning about unused variable in test code

12 years agoAdded comment. Included setup.cfg in config file parsing.
David Hirschfeld [Wed, 27 Jun 2012 12:18:43 +0000 (13:18 +0100)]
Added comment. Included setup.cfg in config file parsing.

12 years agofix the wrapper setup for inherited special methods by inheriting them only in PyPy...
Stefan Behnel [Sun, 24 Jun 2012 09:38:49 +0000 (11:38 +0200)]
fix the wrapper setup for inherited special methods by inheriting them only in PyPy (as a work-around for its broken PyType_Ready())

12 years agofix the Windows slots fix
Stefan Behnel [Sun, 24 Jun 2012 07:04:58 +0000 (09:04 +0200)]
fix the Windows slots fix

12 years agoMerge pull request #134 from tito/fix-win32-constants
scoder [Sun, 24 Jun 2012 06:52:42 +0000 (23:52 -0700)]
Merge pull request #134 from tito/fix-win32-constants

fixes for gcc error on "initializer element is not constant"

12 years agosome cleanup and updating in C++ tutorial
Stefan Behnel [Fri, 22 Jun 2012 10:19:25 +0000 (12:19 +0200)]
some cleanup and updating in C++ tutorial

12 years agoallow passing additional sources into cythonize() through the 'distutils: sources...
Stefan Behnel [Fri, 22 Jun 2012 06:29:39 +0000 (08:29 +0200)]
allow passing additional sources into cythonize() through the 'distutils: sources' option in the source file

12 years agofix build
Stefan Behnel [Fri, 22 Jun 2012 06:27:26 +0000 (08:27 +0200)]
fix build

12 years agocomment on 'not None' signature annotation for memoryview parameters
Stefan Behnel [Thu, 21 Jun 2012 14:04:38 +0000 (16:04 +0200)]
comment on 'not None' signature annotation for memoryview parameters

12 years agouse strided mode in plain buffer example
Stefan Behnel [Thu, 21 Jun 2012 13:48:01 +0000 (15:48 +0200)]
use strided mode in plain buffer example

12 years agosection on array.array in memoryview docs
Stefan Behnel [Thu, 21 Jun 2012 13:00:37 +0000 (15:00 +0200)]
section on array.array in memoryview docs

12 years agoavoid unnecessary references to NumPy in memoryview docs
Stefan Behnel [Thu, 21 Jun 2012 11:55:20 +0000 (13:55 +0200)]
avoid unnecessary references to NumPy in memoryview docs

12 years agoadditional test case for union assignments
Stefan Behnel [Wed, 20 Jun 2012 12:39:53 +0000 (14:39 +0200)]
additional test case for union assignments

12 years agoMove memoryview and buffer tests
Mark Florisson [Tue, 19 Jun 2012 16:13:27 +0000 (17:13 +0100)]
Move memoryview and buffer tests

12 years agoAllow arbitrary strides for strides memoryview slices in verification
Mark Florisson [Tue, 19 Jun 2012 11:08:43 +0000 (12:08 +0100)]
Allow arbitrary strides for strides memoryview slices in verification

12 years agofixes for gcc error on "initializer element is not constant"
Mathieu Virbel [Mon, 18 Jun 2012 22:23:04 +0000 (00:23 +0200)]
fixes for gcc error on "initializer element is not constant"

12 years agostatically inherit slot methods from parent types - PyType_Ready() would normally...
Stefan Behnel [Mon, 18 Jun 2012 19:21:03 +0000 (21:21 +0200)]
statically inherit slot methods from parent types - PyType_Ready() would normally fix this but it's incomplete in PyPy

12 years agoMerge pull request #133 from sbyrnes321/master
Robert Bradshaw [Sat, 16 Jun 2012 22:24:41 +0000 (15:24 -0700)]
Merge pull request #133 from sbyrnes321/master

documentation only--small fixes

12 years agotypo: pyxbdl --> pyxbld
sbyrnes321 [Sat, 16 Jun 2012 20:52:52 +0000 (17:52 -0300)]
typo: pyxbdl --> pyxbld

12 years agoUpdate some text that seems to have been written before reload_support was implemented.
sbyrnes321 [Sat, 16 Jun 2012 20:48:49 +0000 (17:48 -0300)]
Update some text that seems to have been written before reload_support was implemented.

12 years agoSpecialized fused indices
Mark Florisson [Thu, 14 Jun 2012 22:53:59 +0000 (23:53 +0100)]
Specialized fused indices

12 years agoSupport decorators for fused functions
Mark Florisson [Sun, 10 Jun 2012 12:15:54 +0000 (13:15 +0100)]
Support decorators for fused functions

12 years agominor code simplification
Stefan Behnel [Fri, 8 Jun 2012 17:13:15 +0000 (19:13 +0200)]
minor code simplification

12 years agoinline hint
Robert Bradshaw [Thu, 7 Jun 2012 04:46:00 +0000 (21:46 -0700)]
inline hint

12 years agoMerge pull request #132 from tito/fix-win32
Robert Bradshaw [Thu, 7 Jun 2012 04:44:00 +0000 (21:44 -0700)]
Merge pull request #132 from tito/fix-win32

Fix compilation issues on windows (got this error from 0.16 already)

12 years agofix compilation issues on windows (got this error from 0.16 already)
Mathieu Virbel [Thu, 7 Jun 2012 01:51:28 +0000 (03:51 +0200)]
fix compilation issues on windows (got this error from 0.16 already)

12 years agoAdd .travis.yml for Travis CI (http://travis-ci.org/)
Marc Abramowitz [Wed, 6 Jun 2012 04:40:56 +0000 (21:40 -0700)]
Add .travis.yml for Travis CI (travis-ci.org/)

12 years agoAdd support for tox (http://tox.testrun.org/)
Marc Abramowitz [Wed, 6 Jun 2012 04:40:36 +0000 (21:40 -0700)]
Add support for tox (http://tox.testrun.org/)

12 years agofix C declaration after code, found by cgohlke
Stefan Behnel [Sat, 2 Jun 2012 10:35:01 +0000 (12:35 +0200)]
fix C declaration after code, found by cgohlke

12 years agotiny doc fix
Robert Bradshaw [Thu, 31 May 2012 19:01:37 +0000 (12:01 -0700)]
tiny doc fix

12 years agoMerge pull request #128 from minrk/cythonenv
Robert Bradshaw [Thu, 31 May 2012 19:00:03 +0000 (12:00 -0700)]
Merge pull request #128 from minrk/cythonenv

add CYTHON_CACHE_DIR env

12 years agostore inline cython in cache/inline
MinRK [Thu, 31 May 2012 17:49:25 +0000 (10:49 -0700)]
store inline cython in cache/inline

allows orthogonal data to be put in the cache dir.

default inline location unchanged (~.cython/inline),
but get_cython_dir() is .cython, not .cython/inline.

12 years agoChanged cython_inline to parse the config files before building the extension.
dhirschfeld [Thu, 31 May 2012 09:21:39 +0000 (11:21 +0200)]
Changed cython_inline to parse the config files before building the extension.

12 years agoadd CYTHON_CACHE_DIR env
MinRK [Thu, 31 May 2012 04:24:19 +0000 (21:24 -0700)]
add CYTHON_CACHE_DIR env

resolution for the Cython cache dir:

1. CYTHON_CACHE_DIR env if defined
2. platform cache dir
   - (OS X): ~/Library/Caches/Cython if ~/Library/Caches exists
   - (posix not OS X): XDG_CACHE_HOME/cython if XDG_CACHE_HOME defined
3. ~/.cython/inline

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