platform/upstream/python-cython.git
12 years agominor cleanup
Stefan Behnel [Thu, 19 Jul 2012 11:24:31 +0000 (13:24 +0200)]
minor cleanup

12 years agodoc fix
Stefan Behnel [Thu, 19 Jul 2012 10:36:04 +0000 (12:36 +0200)]
doc fix

12 years agodoc update on string decoding
Stefan Behnel [Thu, 19 Jul 2012 09:06:14 +0000 (11:06 +0200)]
doc update on string decoding

12 years agomoved C string decoding utility code from Optimize.c to StringTools.c
Stefan Behnel [Thu, 19 Jul 2012 08:18:19 +0000 (10:18 +0200)]
moved C string decoding utility code from Optimize.c to StringTools.c

12 years agosupport slicing with negative indices for C strings and C++ strings during decoding
Stefan Behnel [Thu, 19 Jul 2012 08:15:41 +0000 (10:15 +0200)]
support slicing with negative indices for C strings and C++ strings during decoding

12 years agofix build
Stefan Behnel [Wed, 18 Jul 2012 21:06:34 +0000 (23:06 +0200)]
fix build

12 years agoprevent calling PyEval_InitThreads() when CPython is built without threads
Stefan Behnel [Wed, 18 Jul 2012 21:00:36 +0000 (23:00 +0200)]
prevent calling PyEval_InitThreads() when CPython is built without threads

12 years agomoved method dispatcher implementation from OptimizeBuiltinCalls class into new Metho...
Stefan Behnel [Wed, 18 Jul 2012 20:49:24 +0000 (22:49 +0200)]
moved method dispatcher implementation from OptimizeBuiltinCalls class into new MethodDispatcherTransform class in Visitor.py to enable reuse

12 years agorewrite of sliced char* decoding as utility functions, implemented efficient sliced...
Stefan Behnel [Wed, 18 Jul 2012 20:24:14 +0000 (22:24 +0200)]
rewrite of sliced char* decoding as utility functions, implemented efficient sliced decoding for C++ std::string

--HG--
extra : rebase_source : e134f5595be98eb990ab2195e8208940efb171fe

12 years agoFix function prototype generation for unused but public/api entries
Lisandro Dalcin [Wed, 18 Jul 2012 20:00:52 +0000 (17:00 -0300)]
Fix function prototype generation for unused but public/api entries

12 years agoadded bug test case by Gabriel Jacobo
Stefan Behnel [Tue, 17 Jul 2012 12:55:20 +0000 (14:55 +0200)]
added bug test case by Gabriel Jacobo

12 years agofix circular import
Stefan Behnel [Tue, 17 Jul 2012 11:26:26 +0000 (13:26 +0200)]
fix circular import

12 years agoMerge pull request #127 from bfroehle/_missing_cimport_cython
scoder [Tue, 17 Jul 2012 08:55:36 +0000 (01:55 -0700)]
Merge pull request #127 from bfroehle/_missing_cimport_cython

Fix "missing cimport: ... cython" warning.

12 years agominor code cleanup
Stefan Behnel [Tue, 17 Jul 2012 04:20:59 +0000 (06:20 +0200)]
minor code cleanup

12 years agofix crash due to moved utility code (apparently in untested code)
Stefan Behnel [Tue, 17 Jul 2012 04:20:22 +0000 (06:20 +0200)]
fix crash due to moved utility code (apparently in untested code)

12 years agoIncluded files dependency fix in cythonize.
Robert Bradshaw [Sun, 15 Jul 2012 06:41:40 +0000 (23:41 -0700)]
Included files dependency fix in cythonize.

12 years agodoc section on known problems with PyPy
Stefan Behnel [Tue, 10 Jul 2012 18:30:20 +0000 (20:30 +0200)]
doc section on known problems with PyPy

12 years agoanother PyPy fix for double conversion: PyNumber_Float() to properly convert strings...
Stefan Behnel [Tue, 10 Jul 2012 11:13:07 +0000 (13:13 +0200)]
another PyPy fix for double conversion: PyNumber_Float() to properly convert strings etc.

12 years agofix with_gil test in PyPy
Stefan Behnel [Tue, 10 Jul 2012 10:20:33 +0000 (12:20 +0200)]
fix with_gil test in PyPy

12 years agofix (and simplify) object->double conversion in PyPy
Stefan Behnel [Tue, 10 Jul 2012 09:56:59 +0000 (11:56 +0200)]
fix (and simplify) object->double conversion in PyPy

12 years agofix test exclusions
Stefan Behnel [Tue, 10 Jul 2012 06:01:36 +0000 (08:01 +0200)]
fix test exclusions

12 years agocompile fix for test under PyPy
Stefan Behnel [Mon, 9 Jul 2012 19:43:25 +0000 (21:43 +0200)]
compile fix for test under PyPy

12 years agofix exception handling for optimised len(builtin)
Stefan Behnel [Mon, 9 Jul 2012 19:36:00 +0000 (21:36 +0200)]
fix exception handling for optimised len(builtin)

12 years agoadapt test to PyPy
Stefan Behnel [Mon, 9 Jul 2012 19:17:06 +0000 (21:17 +0200)]
adapt test to PyPy

12 years agoadjusted doctest output to PyPy
Stefan Behnel [Mon, 9 Jul 2012 19:10:32 +0000 (21:10 +0200)]
adjusted doctest output to PyPy

12 years agodisabled memslice test in Py2.4 - currently broken
Stefan Behnel [Mon, 9 Jul 2012 18:47:46 +0000 (20:47 +0200)]
disabled memslice test in Py2.4 - currently broken

12 years agodisabled numpy_memoryview test in Py2.4 - currently broken
Stefan Behnel [Mon, 9 Jul 2012 18:45:41 +0000 (20:45 +0200)]
disabled numpy_memoryview test in Py2.4 - currently broken

12 years agosuppress 'unused argument' warning in test code
Stefan Behnel [Mon, 9 Jul 2012 10:59:31 +0000 (12:59 +0200)]
suppress 'unused argument' warning in test code

12 years agosuppress 'unused argument' warning in test code
Stefan Behnel [Mon, 9 Jul 2012 10:57:45 +0000 (12:57 +0200)]
suppress 'unused argument' warning in test code

12 years agofix inclusion of .cpp utility files in setup.py
Stefan Behnel [Mon, 9 Jul 2012 07:50:19 +0000 (09:50 +0200)]
fix inclusion of .cpp utility files in setup.py

12 years agouse <ios> instead of <iostream>
Stefan Behnel [Sun, 8 Jul 2012 20:28:18 +0000 (22:28 +0200)]
use <ios> instead of <iostream>

12 years agofix typo in MANIFEST.in
Stefan Behnel [Sun, 8 Jul 2012 20:23:44 +0000 (22:23 +0200)]
fix typo in MANIFEST.in

12 years agocode simplification
Stefan Behnel [Sun, 8 Jul 2012 20:00:18 +0000 (22:00 +0200)]
code simplification

12 years agominor code simplification
Stefan Behnel [Sun, 8 Jul 2012 19:52:56 +0000 (21:52 +0200)]
minor code simplification

12 years agominor code simplification
Stefan Behnel [Sun, 8 Jul 2012 19:44:44 +0000 (21:44 +0200)]
minor code simplification

12 years agomoved GetItemInt_Unicode*() utility functions to StringTools.c
Stefan Behnel [Sun, 8 Jul 2012 19:37:06 +0000 (21:37 +0200)]
moved GetItemInt_Unicode*() utility functions to StringTools.c

12 years agomoved C++ exception conversion utility code into new utility code file Cython/Utility...
Stefan Behnel [Sun, 8 Jul 2012 19:30:59 +0000 (21:30 +0200)]
moved C++ exception conversion utility code into new utility code file Cython/Utility/CppSupport.cpp

12 years agoavoid a useless level of indirection for CyFunction.tp_call() in CPython
Stefan Behnel [Sun, 8 Jul 2012 19:25:05 +0000 (21:25 +0200)]
avoid a useless level of indirection for CyFunction.tp_call() in CPython

12 years agofix compilation and exception conversion when using 'except +'
Stefan Behnel [Sun, 8 Jul 2012 19:21:19 +0000 (21:21 +0200)]
fix compilation and exception conversion when using 'except +'

12 years agowork around bug in gcc 4.2.4 when compiling with '-O0' - any higher opt setting shoul...
Stefan Behnel [Sun, 8 Jul 2012 18:17:00 +0000 (20:17 +0200)]
work around bug in gcc 4.2.4 when compiling with '-O0' - any higher opt setting should inline this function anyway

12 years agofix tests by moving commonly used test helper file to a new test support directory
Stefan Behnel [Sun, 8 Jul 2012 16:19:40 +0000 (18:19 +0200)]
fix tests by moving commonly used test helper file to a new test support directory

--HG--
rename : tests/memoryview/cythonarrayutil.pxi => tests/testsupport/cythonarrayutil.pxi

12 years agodisable profiling overhead in Cython/Build/Dependencies.py
Stefan Behnel [Sun, 8 Jul 2012 14:56:19 +0000 (16:56 +0200)]
disable profiling overhead in Cython/Build/Dependencies.py

12 years agoavoid monkey-patching into the stdlib
Stefan Behnel [Sun, 8 Jul 2012 14:54:38 +0000 (16:54 +0200)]
avoid monkey-patching into the stdlib

12 years agodocumentation on C++ STL container coercion
Stefan Behnel [Sun, 8 Jul 2012 14:03:04 +0000 (16:03 +0200)]
documentation on C++ STL container coercion

12 years agoPy3 test fixes
Stefan Behnel [Sun, 8 Jul 2012 13:57:29 +0000 (15:57 +0200)]
Py3 test fixes

12 years agoextended test
Stefan Behnel [Sun, 8 Jul 2012 13:47:23 +0000 (15:47 +0200)]
extended test

12 years agoallow coercion of temp values to C++ classes
Stefan Behnel [Sun, 8 Jul 2012 13:22:27 +0000 (15:22 +0200)]
allow coercion of temp values to C++ classes

12 years agoextended test
Stefan Behnel [Sun, 8 Jul 2012 12:56:23 +0000 (14:56 +0200)]
extended test

12 years agoextended test
Stefan Behnel [Sun, 8 Jul 2012 12:53:52 +0000 (14:53 +0200)]
extended test

12 years agotest fixes
Stefan Behnel [Sun, 8 Jul 2012 12:53:37 +0000 (14:53 +0200)]
test fixes

12 years agofix some C++ tests
Stefan Behnel [Sat, 7 Jul 2012 17:02:44 +0000 (19:02 +0200)]
fix some C++ tests

12 years agostd::string.c_str() actually returns a 'const char*', add declaration of std::string...
Stefan Behnel [Fri, 6 Jul 2012 23:35:32 +0000 (01:35 +0200)]
std::string.c_str() actually returns a 'const char*', add declaration of std::string.data() method

12 years agogenerate annotated HTML from benchmark sources
Stefan Behnel [Thu, 5 Jul 2012 17:51:36 +0000 (19:51 +0200)]
generate annotated HTML from benchmark sources

12 years agoadded common entry point to richards benchmark
Stefan Behnel [Thu, 5 Jul 2012 10:24:29 +0000 (12:24 +0200)]
added common entry point to richards benchmark

12 years agoadded common entry point to benchmarks
Stefan Behnel [Thu, 5 Jul 2012 09:47:06 +0000 (11:47 +0200)]
added common entry point to benchmarks

12 years agoadded setup.py script to compile benchmark modules
Stefan Behnel [Thu, 5 Jul 2012 08:12:56 +0000 (10:12 +0200)]
added setup.py script to compile benchmark modules

12 years agofix comment
Stefan Behnel [Wed, 4 Jul 2012 06:41:07 +0000 (08:41 +0200)]
fix comment

12 years agoreduce overhead in __pyx_PyFloat_AsDouble() when not compiling in CPython
Stefan Behnel [Tue, 3 Jul 2012 20:26:16 +0000 (22:26 +0200)]
reduce overhead in __pyx_PyFloat_AsDouble() when not compiling in CPython

12 years agofix decref before incref on buffer item assignments
Stefan Behnel [Tue, 3 Jul 2012 19:13:34 +0000 (21:13 +0200)]
fix decref before incref on buffer item assignments

12 years agofix comment
Stefan Behnel [Tue, 3 Jul 2012 18:40:07 +0000 (20:40 +0200)]
fix comment

12 years agoVile hack to get tests working.
Robert Bradshaw [Tue, 3 Jul 2012 17:27:37 +0000 (10:27 -0700)]
Vile hack to get tests working.

12 years agoAnother type inference fix.
Robert Bradshaw [Tue, 3 Jul 2012 17:18:42 +0000 (10:18 -0700)]
Another type inference fix.

12 years agoMore loop type inference fixes.
Robert Bradshaw [Tue, 3 Jul 2012 16:15:13 +0000 (09:15 -0700)]
More loop type inference fixes.

12 years agoFix slice iteration.
Robert Bradshaw [Tue, 3 Jul 2012 09:26:05 +0000 (02:26 -0700)]
Fix slice iteration.

12 years agoFix C++ iteration inference.
Robert Bradshaw [Tue, 3 Jul 2012 08:56:52 +0000 (01:56 -0700)]
Fix C++ iteration inference.

12 years agoUse exception values in C++ conversion, consolidate boilerplate.
Robert Bradshaw [Tue, 3 Jul 2012 08:26:07 +0000 (01:26 -0700)]
Use exception values in C++ conversion, consolidate boilerplate.

12 years agoDon't forget std::list.
Robert Bradshaw [Tue, 3 Jul 2012 06:37:06 +0000 (23:37 -0700)]
Don't forget std::list.

12 years agodeclare C++ default constructor 'except +', fix constructor declarations in test
Stefan Behnel [Tue, 3 Jul 2012 07:23:27 +0000 (09:23 +0200)]
declare C++ default constructor 'except +', fix constructor declarations in test

12 years agoBetter type checking for C++ iterators.
Robert Bradshaw [Mon, 2 Jul 2012 21:06:23 +0000 (14:06 -0700)]
Better type checking for C++ iterators.

12 years agoC++ iterator type inference
Robert Bradshaw [Mon, 2 Jul 2012 19:54:25 +0000 (12:54 -0700)]
C++ iterator type inference

12 years agoC++ iterator tests.
Robert Bradshaw [Mon, 2 Jul 2012 20:00:55 +0000 (13:00 -0700)]
C++ iterator tests.

12 years agoSupport C++ iterators in for..in loops.
Robert Bradshaw [Mon, 2 Jul 2012 19:40:37 +0000 (12:40 -0700)]
Support C++ iterators in for..in loops.

12 years agoextracted GetItemInt utility code into ObjectHandling.c utility file
Stefan Behnel [Sun, 1 Jul 2012 13:12:41 +0000 (15:12 +0200)]
extracted GetItemInt utility code into ObjectHandling.c utility file

12 years agofix TempitaUtilityCode() usage without context
Stefan Behnel [Sun, 1 Jul 2012 13:10:55 +0000 (15:10 +0200)]
fix TempitaUtilityCode() usage without context

12 years agoextracted SetItemInt and DelItemInt utility code into ObjectHandling.c utility file
Stefan Behnel [Sun, 1 Jul 2012 12:53:38 +0000 (14:53 +0200)]
extracted SetItemInt and DelItemInt utility code into ObjectHandling.c utility file

12 years agoadded missing bits from PySequence_Get/Set/DelItem() to __Pyx_*ItemInt_Fast() functio...
Stefan Behnel [Sun, 1 Jul 2012 12:46:41 +0000 (14:46 +0200)]
added missing bits from PySequence_Get/Set/DelItem() to __Pyx_*ItemInt_Fast() functions to inline them completely

12 years agoMerge pull request #136 from yarikoptic/master
scoder [Sat, 30 Jun 2012 19:38:31 +0000 (12:38 -0700)]
Merge pull request #136 from yarikoptic/master

minor typo

12 years agoDOC: typo "stings"
Jakub Wilk [Sat, 30 Jun 2012 16:21:43 +0000 (12:21 -0400)]
DOC: typo "stings"

12 years agofix __Pyx_SetItemInt() in PyPy: PySequence_Check(dict) is true there but PySequence_S...
Stefan Behnel [Sat, 30 Jun 2012 10:39:04 +0000 (12:39 +0200)]
fix __Pyx_SetItemInt() in PyPy: PySequence_Check(dict) is true there but PySequence_SetItem(dict) fails

12 years agospeed up __Pyx_SetItemInt() and __Pyx_DelItemInt() in PyPy
Stefan Behnel [Sat, 30 Jun 2012 09:52:04 +0000 (11:52 +0200)]
speed up __Pyx_SetItemInt() and __Pyx_DelItemInt() in PyPy

12 years agospeed up list/tuple unpacking in PyPy (~10x)
Stefan Behnel [Sat, 30 Jun 2012 09:13:36 +0000 (11:13 +0200)]
speed up list/tuple unpacking in PyPy (~10x)

12 years agoslightly better PyPy code in iterable unpacking
Stefan Behnel [Sat, 30 Jun 2012 08:06:50 +0000 (10:06 +0200)]
slightly better PyPy code in iterable unpacking

12 years agoavoid borrowed references with PyPy in fast list/tuple iteration code
Stefan Behnel [Sat, 30 Jun 2012 08:06:16 +0000 (10:06 +0200)]
avoid borrowed references with PyPy in fast list/tuple iteration code

12 years agoslightly better PyPy code in 2-tuple unpacking
Stefan Behnel [Sat, 30 Jun 2012 07:21:11 +0000 (09:21 +0200)]
slightly better PyPy code in 2-tuple unpacking

12 years agoEllipsis for overflow error.
Robert Bradshaw [Fri, 29 Jun 2012 22:26:56 +0000 (15:26 -0700)]
Ellipsis for overflow error.

12 years agoDon't need terminating null for Python conversion.
Robert Bradshaw [Fri, 29 Jun 2012 22:21:47 +0000 (15:21 -0700)]
Don't need terminating null for Python conversion.

12 years agorefactored tuple unpacking code once again, removed loop for trivial list/tuple unpac...
Stefan Behnel [Fri, 29 Jun 2012 22:26:12 +0000 (00:26 +0200)]
refactored tuple unpacking code once again, removed loop for trivial list/tuple unpacking case

12 years agoC++ stl conversion tests.
Robert Bradshaw [Fri, 29 Jun 2012 17:27:30 +0000 (10:27 -0700)]
C++ stl conversion tests.

12 years agoDissallow pyobjects in conversion.
Robert Bradshaw [Fri, 29 Jun 2012 17:26:59 +0000 (10:26 -0700)]
Dissallow pyobjects in conversion.

12 years agoNesting for all stl containers.
Robert Bradshaw [Fri, 29 Jun 2012 17:24:38 +0000 (10:24 -0700)]
Nesting for all stl containers.

12 years agoAllow nesting.
Robert Bradshaw [Fri, 29 Jun 2012 16:23:16 +0000 (09:23 -0700)]
Allow nesting.

12 years agoFirst pass at C++ stl conversion.
Robert Bradshaw [Fri, 29 Jun 2012 15:43:49 +0000 (08:43 -0700)]
First pass at C++ stl conversion.

12 years agomention PEP393/Py3.3 in doc section on narrow Unicode builds
Stefan Behnel [Fri, 29 Jun 2012 13:16:35 +0000 (15:16 +0200)]
mention PEP393/Py3.3 in doc section on narrow Unicode builds

12 years agoclarification in 'const char*' doc section
Stefan Behnel [Fri, 29 Jun 2012 11:41:53 +0000 (13:41 +0200)]
clarification in 'const char*' doc section

12 years agotypo
Stefan Behnel [Fri, 29 Jun 2012 11:28:00 +0000 (13:28 +0200)]
typo

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