Skip to content
Snippets Groups Projects
Commit a135bca4 authored by Paul Sokolovsky's avatar Paul Sokolovsky Committed by Damien George
Browse files

py/objstr: format: Return bytes result for bytes format string.

This is an improvement over previous behavior when str was returned for
both str and bytes input format.  This new behaviour is also consistent
with how the % operator works, as well as many other str/bytes methods.

It should be noted that it's not how current versions of CPython work,
where there's a gap in the functionality and bytes.format() is not
supported.
parent 09c5c58a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment