DebugClients/Python/coverage/env.py

branch
maintenance
changeset 6693
3629d88ae235
parent 6649
f1b3a73831c9
--- a/DebugClients/Python/coverage/env.py	Thu Jan 10 14:23:49 2019 +0100
+++ b/DebugClients/Python/coverage/env.py	Sat Feb 02 11:12:54 2019 +0100
@@ -24,6 +24,24 @@
 PY2 = PYVERSION < (3, 0)
 PY3 = PYVERSION >= (3, 0)
 
+# Python behavior
+class PYBEHAVIOR(object):
+    """Flags indicating this Python's behavior."""
+
+    # When a break/continue/return statement in a try block jumps to a finally
+    # block, does the finally block do the break/continue/return (pre-3.8), or
+    # does the finally jump back to the break/continue/return (3.8) to do the
+    # work?
+    finally_jumps_back = (PYVERSION >= (3, 8))
+
+    # When a function is decorated, does the trace function get called for the
+    # @-line and also the def-line (new behavior in 3.8)? Or just the @-line
+    # (old behavior)?
+    trace_decorated_def = (PYVERSION >= (3, 8))
+
+    # Are while-true loops optimized into absolute jumps with no loop setup?
+    nix_while_true = (PYVERSION >= (3, 8))
+
 # Coverage.py specifics.
 
 # Are we using the C-implemented trace function?

eric ide

mercurial