[issue25483] Improve f-string implementation: FORMAT_VALUE opcode
Eric V. Smith
report at bugs.python.org
Wed Oct 28 14:46:09 EDT 2015
Eric V. Smith added the comment:
Brett: I'll take a look.
Serhiy: I'm looking for a place to put some #defines related to the bit masks and bit values that my FORMAT_VALUE opcode is using for opargs. One option is to just put them in Tools/scripts/generate_opcode_h.py, so that they end up in the generated opcode.h, but that seems a little sleazy. I can't find a better place they'd belong, though.
Specifically, I want to put these lines into a .h file to use by ceval.c and compile.c:
/* Masks and values for FORMAT_VALUE opcode. */
#define FVC_MASK 0x3
#define FVS_MASK 0x4
#define FVC_NONE 0x0
#define FVC_STR 0x1
#define FVC_REPR 0x2
#define FVC_ASCII 0x3
#define FVS_HAVE_SPEC 0x4
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25483>
_______________________________________
More information about the Python-bugs-list
mailing list