From 39048dc5a950b1492d37bb8c561d998a8cefbd56 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 29 Dec 2007 10:10:05 -0800 Subject: [PATCH] Cmd line option for convert-range, version number --- Cython/Compiler/CmdLine.py | 3 +++ Cython/Compiler/Version.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cython/Compiler/CmdLine.py b/Cython/Compiler/CmdLine.py index bbebd363..1689b21f 100644 --- a/Cython/Compiler/CmdLine.py +++ b/Cython/Compiler/CmdLine.py @@ -26,6 +26,7 @@ Options: performing any binary operations. -D, --no-docstrings Remove docstrings. -a, --annotate Produce an colorized version of the source. + --convert-range Convert for loops using range() function to for...from loops. """ #The following experimental options are supported only on MacOSX: # -C, --compile Compile generated .c file to .o file @@ -88,6 +89,8 @@ def parse_command_line(args): Options.docstrings = False elif option in ("-a", "--annotate"): Options.annotate = True + elif option == "--convert-range": + Options.convert_range = True else: bad_usage() else: diff --git a/Cython/Compiler/Version.py b/Cython/Compiler/Version.py index f7955359..5ae5a497 100644 --- a/Cython/Compiler/Version.py +++ b/Cython/Compiler/Version.py @@ -1 +1 @@ -version = '0.9.6.9' +version = '0.9.6.10' -- 2.26.2