[pypy-commit] pypy nedbat-sandbox-2: Change pypy_interact's default to quiet, you have to ask for verbose.
ned
noreply at buildbot.pypy.org
Wed Dec 28 15:23:27 CET 2011
Author: Ned Batchelder <ned at nedbatchelder.com>
Branch: nedbat-sandbox-2
Changeset: r50925:cd7b359d0a00
Date: 2011-12-28 09:21 -0500
http://bitbucket.org/pypy/pypy/changeset/cd7b359d0a00/
Log: Change pypy_interact's default to quiet, you have to ask for
verbose.
diff --git a/pypy/translator/sandbox/pypy_interact.py b/pypy/translator/sandbox/pypy_interact.py
--- a/pypy/translator/sandbox/pypy_interact.py
+++ b/pypy/translator/sandbox/pypy_interact.py
@@ -13,7 +13,8 @@
ATM this only works with PyPy translated with Boehm or
the semispace or generation GCs.
--timeout=N limit execution time to N (real-time) seconds.
- --log=FILE log all user input into the FILE
+ --log=FILE log all user input into the FILE.
+ --verbose log all proxied system calls.
Note that you can get readline-like behavior with a tool like 'ledit',
provided you use enough -u options:
@@ -68,13 +69,13 @@
if __name__ == '__main__':
from getopt import getopt # and not gnu_getopt!
- options, arguments = getopt(sys.argv[1:], 't:hq',
+ options, arguments = getopt(sys.argv[1:], 't:hv',
['tmp=', 'heapsize=', 'timeout=', 'log=',
- 'quiet', 'help'])
+ 'verbose', 'help'])
tmpdir = None
timeout = None
logfile = None
- debug = True
+ debug = False
extraoptions = []
def help():
@@ -106,8 +107,8 @@
timeout = int(value)
elif option == '--log':
logfile = value
- elif option in ['-q', '--quiet']:
- debug = False
+ elif option in ['-v', '--verbose']:
+ debug = True
elif option in ['-h', '--help']:
help()
else:
More information about the pypy-commit
mailing list