[pypy-commit] pypy py3.7: Add new sys.flags attributes

rlamy pypy.commits at gmail.com
Thu Aug 29 19:19:56 EDT 2019


Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.7
Changeset: r97338:bcb6578cf796
Date: 2019-08-30 00:19 +0100
http://bitbucket.org/pypy/pypy/changeset/bcb6578cf796/

Log:	Add new sys.flags attributes

diff --git a/pypy/module/sys/app.py b/pypy/module/sys/app.py
--- a/pypy/module/sys/app.py
+++ b/pypy/module/sys/app.py
@@ -56,7 +56,7 @@
 If it is another kind of object, it will be printed and the system
 exit status will be one (i.e., failure)."""
     # note that we cannot simply use SystemExit(exitcode) here.
-    # in the default branch, we use "raise SystemExit, exitcode", 
+    # in the default branch, we use "raise SystemExit, exitcode",
     # which leads to an extra de-tupelizing
     # in normalize_exception, which is exactly like CPython's.
     if isinstance(exitcode, tuple):
@@ -106,8 +106,10 @@
     quiet = structseqfield(10)
     hash_randomization = structseqfield(11)
     isolated = structseqfield(12)
+    dev_mode = structseqfield(13)
+    utf8_mode = structseqfield(14)
 
-null_sysflags = sysflags((0,)*13)
+null_sysflags = sysflags((0,)*15)
 null__xoptions = {}
 
 


More information about the pypy-commit mailing list