Files
micropython/py
Jeff Epler 5552fbe172 py/mpprint: Correctly format leading zeros with separators.
Correctly format integers when there are leading zeros with a grouping
character, such as "{:04,d}".format(0x100) -> "0,256".

The new padding patterns for commas-and-zeroes and underscores-and-zeroes
are smooshed together into the existing pad_zeroes to save space.

Only the two combinations of (decimal + commas) and (other bases +
underscores) are properly supported.

Also add a test for it.

Fixes issue #18082.

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2025-10-06 15:07:34 +11:00
..
2025-07-25 10:56:02 +10:00
2025-09-16 13:04:42 +10:00
2025-02-25 16:11:33 +11:00