--embed Embed the Python interpreter in a main() method.
-2 Compile based on Python-2 syntax and code semantics.
-3 Compile based on Python-3 syntax and code semantics.
- --fatal-errors Abort the compilation on the first error
+ --fast-fail Abort the compilation on the first error
-X, --directive <name>=<value>[,<name=value,...] Overrides a compiler directive
"""
options.language_level = 2
elif option == '-3':
options.language_level = 3
- elif option == "--fatal-errors":
- Options.fatal_errors = True
+ elif option == "--fast-fail":
+ Options.fast_fail = True
elif option in ("-X", "--directive"):
try:
options.compiler_directives = Options.parse_directive_list(
except UnicodeEncodeError:
echo_file.write(line.encode('ASCII', 'replace'))
num_errors = num_errors + 1
- if Options.fatal_errors:
+ if Options.fast_fail:
raise AbortError, "fatal errors"
def error(position, message):
# This will abort the compilation on the first error occured rather than trying
# to keep going and printing further error messages.
-fatal_errors = False
+fast_fail = False
# 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