This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Mark.Shannon
Recipients Mark.Shannon
Date 2018-03-17.12:33:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1521289990.47.0.467229070634.issue33092@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-03-17 12:33:10Mark.Shannonsetrecipients: + Mark.Shannon
2018-03-17 12:33:10Mark.Shannonsetmessageid: <1521289990.47.0.467229070634.issue33092@psf.upfronthosting.co.za>
2018-03-17 12:33:10Mark.Shannonlinkissue33092 messages
2018-03-17 12:33:09Mark.Shannoncreate