Message314000
f-string expressions can be formatted in four ways:
with or without a conversion
and
with or without a format specifier
Rather than have one bytecode that parses the opcode argument at runtime it would be more efficient and produce a cleaner interpreter for the compiler to produce one or two bytecode as required.
The bytecodes should be:
CONVERT_VALUE convert_fn
FORMAT_SIMPLE
FORMAT_WITH_SPEC
For simple format expressions with no conversion or format specifier,
which make up about 3/4 of all format expressions in the standard library, just the bytecode FORMAT_SIMPLE need be executed. |
|
Date |
User |
Action |
Args |
2018-03-17 12:33:10 | Mark.Shannon | set | recipients:
+ Mark.Shannon |
2018-03-17 12:33:10 | Mark.Shannon | set | messageid: <1521289990.47.0.467229070634.issue33092@psf.upfronthosting.co.za> |
2018-03-17 12:33:10 | Mark.Shannon | link | issue33092 messages |
2018-03-17 12:33:09 | Mark.Shannon | create | |
|