From: Stefan Behnel Date: Sat, 29 Dec 2007 21:58:11 +0000 (+0100) Subject: merged changes from 0.9.6.10 X-Git-Tag: 0.9.6.14~29^2~62^2~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3024a47dee478f1e7911279d1410e826252820eb;p=cython.git merged changes from 0.9.6.10 --- 3024a47dee478f1e7911279d1410e826252820eb diff --cc Cython/Compiler/Options.py index 9f1bc141,9a2120e9..d3511115 --- a/Cython/Compiler/Options.py +++ b/Cython/Compiler/Options.py @@@ -19,6 -19,17 +19,17 @@@ incref_local_binop = # Decref global variables in this module on exit for garbage collection. # 0: None, 1+: interned objects, 2+: cdef globals, 3+: types objects + # Mostly for reducing noise for Valgrind, only executes at process exit + # (when all memory will be reclaimed anyways). -generate_cleanup_code = 0 +generate_cleanup_code = 3 - annotate = 0 + annotate = 0 + + # This will convert statements of the form "for i in range(...)" + # to "for i from ..." when i is a cdef'd integer type, and the direction + # (i.e. sign of step) can be determined. + # WARNING: This may change the symantics if the range causes assignment to + # i to overflow. Specifically, if this option is set, an error will be + # raised before the loop is entered, wheras without this option the loop + # will execute util a overflowing value is encountered. + convert_range = 0