diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2018-09-21 16:44:04 -0700 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-09-26 15:29:41 +1000 |
commit | a135bca4a10b99e80a2732cff1a53c6a4734c145 (patch) | |
tree | 8993e4bf12dcc9b158e0fe3c0a30d69b4b24977b /py/persistentcode.c | |
parent | 09c5c58a1f797f3eeaf5088b7d6ef92d86c26532 (diff) | |
download | micropython-a135bca4a10b99e80a2732cff1a53c6a4734c145.tar.gz micropython-a135bca4a10b99e80a2732cff1a53c6a4734c145.zip |
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.
Diffstat (limited to 'py/persistentcode.c')
0 files changed, 0 insertions, 0 deletions