commit | a78c7954d549fba967a842143b4e3050ff488468 | [log] [tgz] |
---|---|---|
author | Eric V. Smith <eric@trueblade.com> | Tue Nov 03 12:45:05 2015 -0500 |
committer | Eric V. Smith <eric@trueblade.com> | Tue Nov 03 12:45:05 2015 -0500 |
tree | 26e0270948bb638d1b11dec80cfbc6397fdc2643 | |
parent | 2753a096e0365bf93e1fd3a3e20735f598c14e91 [diff] [blame] |
Issue 25483: Add an opcode to make f-string formatting more robust.
diff --git a/Include/ceval.h b/Include/ceval.h index b5373a9..d194044 100644 --- a/Include/ceval.h +++ b/Include/ceval.h
@@ -206,6 +206,14 @@ PyAPI_FUNC(void) _PyEval_SignalAsyncExc(void); #endif +/* Masks and values used by FORMAT_VALUE opcode. */ +#define FVC_MASK 0x3 +#define FVC_NONE 0x0 +#define FVC_STR 0x1 +#define FVC_REPR 0x2 +#define FVC_ASCII 0x3 +#define FVS_MASK 0x4 +#define FVS_HAVE_SPEC 0x4 #ifdef __cplusplus }