summaryrefslogtreecommitdiffstatshomepage
path: root/tests/bytecode/mp-tests/listcomp3.py
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2024-01-25 09:09:06 -0600
committerDamien George <damien@micropython.org>2025-05-13 12:16:35 +1000
commit9032491efd8a63e0b13dbcfb8579cde4791c03af (patch)
tree50245b32d8cba4f36c049a7c68cf11ff6606b5aa /tests/bytecode/mp-tests/listcomp3.py
parentf47e214cdcf11c2067936cb4b4e4f9deab73f6fc (diff)
downloadmicropython-9032491efd8a63e0b13dbcfb8579cde4791c03af.tar.gz
micropython-9032491efd8a63e0b13dbcfb8579cde4791c03af.zip
py/objstr: Add support for the :_b/o/x specifier in str.format.
This groups non-decimal values by fours, such as bbb_bbbb_bbbb. It also supports `{:_d}` to use underscore for decimal numbers (grouped in threes). Use of incorrect ":,b" is not diagnosed. Thanks to @dpgeorge for the suggestion to reduce code size. Signed-off-by: Jeff Epler <jepler@gmail.com>
Diffstat (limited to 'tests/bytecode/mp-tests/listcomp3.py')
0 files changed, 0 insertions, 0 deletions