[pypy-svn] r45553 - in pypy/dist/pypy: config doc/config translator/cli
antocuni at codespeak.net
antocuni at codespeak.net
Wed Aug 8 15:58:16 CEST 2007
Author: antocuni
Date: Wed Aug 8 15:58:16 2007
New Revision: 45553
Added:
pypy/dist/pypy/doc/config/translation.cli.exception_transformer.txt (contents, props changed)
Modified:
pypy/dist/pypy/config/translationoption.py
pypy/dist/pypy/translator/cli/gencli.py
Log:
add a new option to tell gencli to use the exception transformer
Modified: pypy/dist/pypy/config/translationoption.py
==============================================================================
--- pypy/dist/pypy/config/translationoption.py (original)
+++ pypy/dist/pypy/config/translationoption.py Wed Aug 8 15:58:16 2007
@@ -195,7 +195,8 @@
OptionDescription("cli", "GenCLI options", [
BoolOption("trace_calls", "Trace function calls", default=False,
- cmdline="--cli-trace-calls")
+ cmdline="--cli-trace-calls"),
+ BoolOption("exception_transformer", "Use exception transformer", default=False),
]),
])
Added: pypy/dist/pypy/doc/config/translation.cli.exception_transformer.txt
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/doc/config/translation.cli.exception_transformer.txt Wed Aug 8 15:58:16 2007
@@ -0,0 +1,3 @@
+Use the exception transformer instead of the native .NET exceptions to
+implement RPython exceptions. Enable this option only if you know what
+you are doing.
Modified: pypy/dist/pypy/translator/cli/gencli.py
==============================================================================
--- pypy/dist/pypy/translator/cli/gencli.py (original)
+++ pypy/dist/pypy/translator/cli/gencli.py Wed Aug 8 15:58:16 2007
@@ -51,6 +51,7 @@
def __init__(self, tmpdir, translator, entrypoint, config=None, exctrans=False):
GenOO.__init__(self, tmpdir, translator, entrypoint, config)
+ exctrans = exctrans or translator.config.translation.cli.exception_transformer
if exctrans:
self.db.exceptiontransformer = translator.getexceptiontransformer()
More information about the Pypy-commit
mailing list