platform/upstream/python-cython.git
10 years agochangelog
Stefan Behnel [Tue, 7 Jan 2014 11:18:32 +0000 (12:18 +0100)]
changelog

--HG--
extra : amend_source : 95fc8a7afdf4614a3dfe7b9874d1ba8cd1bf9967

10 years agoUnraisable traceback docs.
Robert Bradshaw [Tue, 7 Jan 2014 10:21:25 +0000 (02:21 -0800)]
Unraisable traceback docs.

10 years agoTraceback on unraisable exceptions.
Robert Bradshaw [Tue, 7 Jan 2014 10:17:33 +0000 (02:17 -0800)]
Traceback on unraisable exceptions.

10 years agoCimported name mangling.
Robert Bradshaw [Tue, 7 Jan 2014 09:47:07 +0000 (01:47 -0800)]
Cimported name mangling.

10 years agoundo smart quotes
Robert Bradshaw [Tue, 7 Jan 2014 04:53:57 +0000 (20:53 -0800)]
undo smart quotes

10 years agoavoid wasting time on parsing pyregr test files for Cython tags
Stefan Behnel [Sun, 5 Jan 2014 12:13:03 +0000 (13:13 +0100)]
avoid wasting time on parsing pyregr test files for Cython tags

10 years agoPy2.4/5 fix
Stefan Behnel [Sun, 5 Jan 2014 07:20:42 +0000 (08:20 +0100)]
Py2.4/5 fix

10 years agore-enable relaxed_strides test for pre-1.8 NumPy versions
Stefan Behnel [Sat, 4 Jan 2014 21:57:55 +0000 (22:57 +0100)]
re-enable relaxed_strides test for pre-1.8 NumPy versions

10 years agowork around different NumPy 0.18 compile time configurations
Stefan Behnel [Sat, 4 Jan 2014 21:45:21 +0000 (22:45 +0100)]
work around different NumPy 0.18 compile time configurations

10 years agofix bytearray.append(ch) for non-ASCII 1-char strings in Py2 and extend test
Stefan Behnel [Sat, 4 Jan 2014 21:39:08 +0000 (22:39 +0100)]
fix bytearray.append(ch) for non-ASCII 1-char strings in Py2 and extend test

10 years agospecial case and optimise both PyInt and PyLong types in __Pyx_PyIndex_AsSsize_t()
Stefan Behnel [Sat, 4 Jan 2014 20:55:54 +0000 (21:55 +0100)]
special case and optimise both PyInt and PyLong types in __Pyx_PyIndex_AsSsize_t()

10 years agofix implicit integer downcast in __Pyx_PyByteArray_AppendObject() function
Stefan Behnel [Sat, 4 Jan 2014 20:44:26 +0000 (21:44 +0100)]
fix implicit integer downcast in __Pyx_PyByteArray_AppendObject() function

10 years agoremove outdated comment
Stefan Behnel [Sat, 4 Jan 2014 20:07:24 +0000 (21:07 +0100)]
remove outdated comment

--HG--
extra : rebase_source : 22e9602b4fa5ddfd4e9577610afe1635b482a86d

10 years agoUpdate docs about template functions.
Robert Bradshaw [Sat, 4 Jan 2014 05:09:13 +0000 (21:09 -0800)]
Update docs about template functions.

10 years agofix test tag
Stefan Behnel [Fri, 3 Jan 2014 19:57:14 +0000 (20:57 +0100)]
fix test tag

10 years agowhitespace
Stefan Behnel [Fri, 3 Jan 2014 18:07:24 +0000 (19:07 +0100)]
whitespace

10 years agomake doctest output readable on error
Stefan Behnel [Fri, 3 Jan 2014 18:03:15 +0000 (19:03 +0100)]
make doctest output readable on error

10 years agoPy2.4/5 fix
Stefan Behnel [Fri, 3 Jan 2014 16:39:58 +0000 (17:39 +0100)]
Py2.4/5 fix

10 years agofix test tag
Stefan Behnel [Fri, 3 Jan 2014 15:55:13 +0000 (16:55 +0100)]
fix test tag

10 years agofix Cython warning
Stefan Behnel [Fri, 3 Jan 2014 13:43:14 +0000 (14:43 +0100)]
fix Cython warning

10 years agofix node subtree access in last change (use either local variable or attribute, not...
Stefan Behnel [Fri, 3 Jan 2014 13:32:32 +0000 (14:32 +0100)]
fix node subtree access in last change (use either local variable or attribute, not a mix)

10 years agobe another little more relaxed about temping in assignments (some things really are...
Stefan Behnel [Fri, 3 Jan 2014 13:22:31 +0000 (14:22 +0100)]
be another little more relaxed about temping in assignments (some things really are simple enough)

10 years agobe a little more relaxed about temping in assignments (looks like some things still...
Stefan Behnel [Fri, 3 Jan 2014 13:13:13 +0000 (14:13 +0100)]
be a little more relaxed about temping in assignments (looks like some things still can't be moved to a temp...)

10 years agoadd tests for some evil cdef attribute assignments and fix them
Stefan Behnel [Fri, 3 Jan 2014 10:32:38 +0000 (11:32 +0100)]
add tests for some evil cdef attribute assignments and fix them

10 years agofix test tag
Stefan Behnel [Fri, 3 Jan 2014 08:37:49 +0000 (09:37 +0100)]
fix test tag

10 years agomake test runner bark at unknown tag names in test files
Stefan Behnel [Fri, 3 Jan 2014 08:34:45 +0000 (09:34 +0100)]
make test runner bark at unknown tag names in test files

10 years agoadd test tags
Stefan Behnel [Fri, 3 Jan 2014 08:28:21 +0000 (09:28 +0100)]
add test tags

10 years agofix test tags
Stefan Behnel [Fri, 3 Jan 2014 07:59:53 +0000 (08:59 +0100)]
fix test tags

--HG--
extra : amend_source : f77abd8de587ce3644f0bb7c98bd61f78fabf755

10 years agoremove some useless temping (not sure if it's needed at all, but lacks tests)
Stefan Behnel [Thu, 2 Jan 2014 21:13:22 +0000 (22:13 +0100)]
remove some useless temping (not sure if it's needed at all, but lacks tests)

10 years agocopy 'constant_result' field in from_node() method
Stefan Behnel [Thu, 2 Jan 2014 12:48:39 +0000 (13:48 +0100)]
copy 'constant_result' field in from_node() method

10 years agoimplement independent coercion of subexpressions for conditional if-else expression
Stefan Behnel [Thu, 2 Jan 2014 12:47:58 +0000 (13:47 +0100)]
implement independent coercion of subexpressions for conditional if-else expression

10 years agofix C comment in utility code that didn't get discarded from C code
Stefan Behnel [Thu, 2 Jan 2014 12:05:27 +0000 (13:05 +0100)]
fix C comment in utility code that didn't get discarded from C code

10 years agoavoid useless metaclass searching overhead when creating Python class without base...
Stefan Behnel [Wed, 1 Jan 2014 22:01:53 +0000 (23:01 +0100)]
avoid useless metaclass searching overhead when creating Python class without base classes

10 years agominor code simplification
Stefan Behnel [Wed, 1 Jan 2014 12:26:12 +0000 (13:26 +0100)]
minor code simplification

10 years agofix refnanny counting for StopIteration value in yield-from
Stefan Behnel [Wed, 1 Jan 2014 12:20:13 +0000 (13:20 +0100)]
fix refnanny counting for StopIteration value in yield-from

10 years agosupport non-types as Py2 metaclasses
Stefan Behnel [Wed, 1 Jan 2014 11:03:34 +0000 (12:03 +0100)]
support non-types as Py2 metaclasses

10 years agomake cname prefixes of cached constants unique by type (avoid overlap with C string...
Stefan Behnel [Tue, 31 Dec 2013 22:44:44 +0000 (23:44 +0100)]
make cname prefixes of cached constants unique by type (avoid overlap with C string constants)

10 years agotighten test assertion
Stefan Behnel [Tue, 31 Dec 2013 20:12:26 +0000 (21:12 +0100)]
tighten test assertion

10 years agofix control flow analysis for del-ing non-names
Stefan Behnel [Tue, 31 Dec 2013 19:53:09 +0000 (20:53 +0100)]
fix control flow analysis for del-ing non-names

10 years agooptimise dict.has_key()
Stefan Behnel [Tue, 31 Dec 2013 19:33:05 +0000 (20:33 +0100)]
optimise dict.has_key()

10 years agooptimise str % formatting
Stefan Behnel [Tue, 31 Dec 2013 18:13:43 +0000 (19:13 +0100)]
optimise str % formatting

10 years agochangelog
Stefan Behnel [Tue, 31 Dec 2013 15:25:36 +0000 (16:25 +0100)]
changelog

10 years agoremove test after removing the code it tests
Stefan Behnel [Tue, 31 Dec 2013 15:21:55 +0000 (16:21 +0100)]
remove test after removing the code it tests

10 years agoundo while loop termination change - didn't consider "break" ...
Stefan Behnel [Tue, 31 Dec 2013 14:39:31 +0000 (15:39 +0100)]
undo while loop termination change - didn't consider "break" ...

10 years agomerge
Stefan Behnel [Tue, 31 Dec 2013 14:22:35 +0000 (15:22 +0100)]
merge

10 years agomark infinite while loops as terminators when looking for unreachable code
Stefan Behnel [Tue, 31 Dec 2013 12:47:50 +0000 (13:47 +0100)]
mark infinite while loops as terminators when looking for unreachable code

10 years agoavoid some dead code in generator exit
Stefan Behnel [Tue, 31 Dec 2013 12:40:42 +0000 (13:40 +0100)]
avoid some dead code in generator exit

10 years agowarn about unreachable except-else clause
Stefan Behnel [Tue, 31 Dec 2013 11:56:11 +0000 (12:56 +0100)]
warn about unreachable except-else clause

--HG--
extra : amend_source : 4c6b14a416f49c6942dc5fafc87b1ea2120bac7b

10 years agoreduce scope of gil state declaration in try-finally
Stefan Behnel [Tue, 31 Dec 2013 11:27:06 +0000 (12:27 +0100)]
reduce scope of gil state declaration in try-finally

10 years agofix crash due to temporarily inconsistent exception state in parallel exception handl...
Stefan Behnel [Tue, 31 Dec 2013 11:06:42 +0000 (12:06 +0100)]
fix crash due to temporarily inconsistent exception state in parallel exception handling code

10 years agocall giveref() before invalidating reference in parallel exception handling code
Stefan Behnel [Tue, 31 Dec 2013 10:46:10 +0000 (11:46 +0100)]
call giveref() before invalidating reference in parallel exception handling code

10 years agofix C compiler warnings about unused utility code
Stefan Behnel [Tue, 31 Dec 2013 10:19:00 +0000 (11:19 +0100)]
fix C compiler warnings about unused utility code

10 years agoavoid generating some unreachable code on function exit
Stefan Behnel [Tue, 31 Dec 2013 10:15:50 +0000 (11:15 +0100)]
avoid generating some unreachable code on function exit

10 years agoback up and restore complete exception state around 'finally' clauses; move current...
Stefan Behnel [Tue, 31 Dec 2013 10:02:27 +0000 (11:02 +0100)]
back up and restore complete exception state around 'finally' clauses; move current exception into sys.exc_info in Py3 to match Py3 semantics

10 years agoOne more tiny fix.
Robert Bradshaw [Tue, 31 Dec 2013 08:14:56 +0000 (00:14 -0800)]
One more tiny fix.

10 years agodiscard C code comment from generated code
Stefan Behnel [Tue, 31 Dec 2013 08:09:27 +0000 (09:09 +0100)]
discard C code comment from generated code

10 years agoFix __richcmp__ bug that's been failing Sage tests.
Robert Bradshaw [Tue, 31 Dec 2013 06:47:02 +0000 (22:47 -0800)]
Fix __richcmp__ bug that's been failing Sage tests.

10 years agoRelease notes.
Robert Bradshaw [Tue, 31 Dec 2013 06:28:28 +0000 (22:28 -0800)]
Release notes.

10 years agoOut of order base class test.
Robert Bradshaw [Tue, 31 Dec 2013 06:26:41 +0000 (22:26 -0800)]
Out of order base class test.

10 years agoFix bug when base classes were declared out-of-order.
Robert Bradshaw [Tue, 31 Dec 2013 06:24:04 +0000 (22:24 -0800)]
Fix bug when base classes were declared out-of-order.

10 years agofix refleak on literal/slow tuple creation
Stefan Behnel [Sun, 29 Dec 2013 21:13:17 +0000 (22:13 +0100)]
fix refleak on literal/slow tuple creation

10 years agoMerge pull request #269 from yasuyk/fix-elisp-header-line
scoder [Sun, 29 Dec 2013 12:06:56 +0000 (04:06 -0800)]
Merge pull request #269 from yasuyk/fix-elisp-header-line

Fix file header line for ELPA compatiblility

10 years agoFix header line
Yasuyuki Oka [Sun, 29 Dec 2013 10:36:39 +0000 (19:36 +0900)]
Fix header line

10 years agoRemove experimental flag for C++ class defs.
Robert Bradshaw [Sun, 29 Dec 2013 04:03:22 +0000 (20:03 -0800)]
Remove experimental flag for C++ class defs.

10 years agoextend try-finally tests
Stefan Behnel [Sat, 28 Dec 2013 22:25:38 +0000 (23:25 +0100)]
extend try-finally tests

--HG--
extra : amend_source : c193bf636bba3b0f0439a25f1078e81a065b99fe

10 years agoenable unicode format optimisation for '%' operator regardless of rhs
Stefan Behnel [Sat, 28 Dec 2013 18:12:01 +0000 (19:12 +0100)]
enable unicode format optimisation for '%' operator regardless of rhs

10 years agodisable redundant exception checks for optimised builtins
Stefan Behnel [Sat, 28 Dec 2013 15:18:38 +0000 (16:18 +0100)]
disable redundant exception checks for optimised builtins

10 years agoRelease notes.
Robert Bradshaw [Sat, 28 Dec 2013 00:21:30 +0000 (16:21 -0800)]
Release notes.

10 years agoFix C++ const method declarations.
Robert Bradshaw [Sat, 28 Dec 2013 00:17:17 +0000 (16:17 -0800)]
Fix C++ const method declarations.

10 years agowhitespace
Robert Bradshaw [Sat, 28 Dec 2013 00:16:58 +0000 (16:16 -0800)]
whitespace

10 years agomerge
Stefan Behnel [Fri, 27 Dec 2013 16:22:24 +0000 (17:22 +0100)]
merge

10 years agohandle Py2 compatibility case bytearray.append(pychar)
Stefan Behnel [Fri, 27 Dec 2013 16:12:09 +0000 (17:12 +0100)]
handle Py2 compatibility case bytearray.append(pychar)

--HG--
extra : amend_source : f3b7f004f905c791e6ced2a5b27fffa21f9ceb08

10 years agoMore template parameter deduction.
Robert Bradshaw [Fri, 27 Dec 2013 07:29:26 +0000 (23:29 -0800)]
More template parameter deduction.

10 years agosimple template deduction
Robert Bradshaw [Fri, 27 Dec 2013 07:00:31 +0000 (23:00 -0800)]
simple template deduction

10 years agoFix declaration error test.
Robert Bradshaw [Fri, 27 Dec 2013 01:09:45 +0000 (17:09 -0800)]
Fix declaration error test.

10 years agoAdd function template tests.
Robert Bradshaw [Thu, 26 Dec 2013 23:59:06 +0000 (15:59 -0800)]
Add function template tests.

10 years agoAdd support for external C++ template functions.
Robert Bradshaw [Thu, 26 Dec 2013 23:40:58 +0000 (15:40 -0800)]
Add support for external C++ template functions.

The syntax follows that of template classes, namely

    cdef T foo[T](T, ...)

10 years agoFix C++ complex for clang.
Robert Bradshaw [Thu, 26 Dec 2013 22:41:17 +0000 (14:41 -0800)]
Fix C++ complex for clang.

10 years agoComplex int division not well defined.
Robert Bradshaw [Thu, 26 Dec 2013 21:03:45 +0000 (13:03 -0800)]
Complex int division not well defined.

It's sensitive to compiler implementation.

10 years agoAccept tuple for cythonized extension list.
Robert Bradshaw [Thu, 26 Dec 2013 20:47:51 +0000 (12:47 -0800)]
Accept tuple for cythonized extension list.

10 years agomove C declaration before code
Stefan Behnel [Wed, 25 Dec 2013 16:03:03 +0000 (17:03 +0100)]
move C declaration before code

10 years agofix doctest in Py3
Stefan Behnel [Wed, 25 Dec 2013 13:28:44 +0000 (14:28 +0100)]
fix doctest in Py3

10 years agoadd integer fast-path to __Pyx_PyIndex_AsSsize_t()
Stefan Behnel [Tue, 24 Dec 2013 16:06:04 +0000 (17:06 +0100)]
add integer fast-path to __Pyx_PyIndex_AsSsize_t()

10 years agoinline bytearray.append()
Stefan Behnel [Tue, 24 Dec 2013 15:29:36 +0000 (16:29 +0100)]
inline bytearray.append()

10 years agodisable exception check for special C return type (always assume that it's an excepti...
Stefan Behnel [Tue, 24 Dec 2013 13:56:16 +0000 (14:56 +0100)]
disable exception check for special C return type (always assume that it's an exception when -1 is returned)

--HG--
extra : amend_source : 88f30462a27faf52fcee83af0d1dce714e4f7e69

10 years agooptimise object.append() only when return value is not used and adapt signature accor...
Stefan Behnel [Tue, 24 Dec 2013 13:54:09 +0000 (14:54 +0100)]
optimise object.append() only when return value is not used and adapt signature accordingly

10 years agofix constant folding of PrimaryCmpNode operands
Stefan Behnel [Tue, 24 Dec 2013 12:50:18 +0000 (13:50 +0100)]
fix constant folding of PrimaryCmpNode operands

10 years agofix crash when looking up closure names in OptimizeBuiltinCalls transform (after...
Stefan Behnel [Tue, 24 Dec 2013 07:16:43 +0000 (08:16 +0100)]
fix crash when looking up closure names in OptimizeBuiltinCalls transform (after running CreateClosureClasses transform)

10 years agoavoid redundant NULL inits for extension type fields in tp_new()
Stefan Behnel [Sun, 22 Dec 2013 17:21:18 +0000 (18:21 +0100)]
avoid redundant NULL inits for extension type fields in tp_new()

10 years agomerge 0.19.x branch into master
Stefan Behnel [Sun, 22 Dec 2013 07:44:17 +0000 (08:44 +0100)]
merge 0.19.x branch into master

10 years agofix C compiler warning about unused expression result
Stefan Behnel [Sat, 21 Dec 2013 21:11:42 +0000 (22:11 +0100)]
fix C compiler warning about unused expression result

10 years agofix C compiler warning about unused expression result
Stefan Behnel [Sat, 21 Dec 2013 21:11:42 +0000 (22:11 +0100)]
fix C compiler warning about unused expression result

--HG--
extra : transplant_source : q%D5F8/%0B6%E2%B7R%F3%C9%E1%98%1B%E0X%A0%F1I

10 years agodisable return value saving in finally clauses that only change the GIL status
Stefan Behnel [Thu, 19 Dec 2013 22:31:51 +0000 (23:31 +0100)]
disable return value saving in finally clauses that only change the GIL status

10 years agofix refnanny error output in Py3
Stefan Behnel [Thu, 19 Dec 2013 21:43:12 +0000 (22:43 +0100)]
fix refnanny error output in Py3

10 years agosimplify code
Stefan Behnel [Thu, 19 Dec 2013 19:51:04 +0000 (20:51 +0100)]
simplify code

10 years agofix memoryview warnings
Robert Bradshaw [Thu, 24 Oct 2013 07:23:44 +0000 (00:23 -0700)]
fix memoryview warnings

10 years agofix try-finally-return in functions returning void
Stefan Behnel [Wed, 18 Dec 2013 19:50:54 +0000 (20:50 +0100)]
fix try-finally-return in functions returning void

10 years agofix build
Stefan Behnel [Wed, 18 Dec 2013 18:36:04 +0000 (19:36 +0100)]
fix build

10 years agomerge
Stefan Behnel [Wed, 18 Dec 2013 18:05:38 +0000 (19:05 +0100)]
merge

10 years agoimplement 'yield' inside of 'finally' clause
Stefan Behnel [Wed, 18 Dec 2013 18:02:09 +0000 (19:02 +0100)]
implement 'yield' inside of 'finally' clause