(original) (raw)
On Tue, Mar 25, 2014 at 11:37 PM, Ethan Furman <ethan@stoneleaf.us> wrote:
-- In particular, \`\`%s\`\` will not accept numbers (use a numeric format code for
that), nor \`\`str\`\` (encode it to \`\`bytes\`\`).
I don't understand this restriction, and there isn't a rationale for it in the PEP (other than "you can already use numeric formats", which doesn't explain why it's undesirable to have it anyway.) It is extremely common in existing 2.x code to use %s for anything, just like people use {} for anything with str.format. Not supporting this feels like it would be problematic for porting code. Did this come up in the earlier discussions?
Thomas Wouters <thomas@python.org>
Hi! I'm an email virus! Think twice before sending your email to help me spread!