While porting a CPYTHON program to Micropython I noticed this difference:
MicroPython v1.8.6-273-g5efd650 on 2016-12-31; PYBLITEv1.0 with STM32F411RE
Type "help()" for more information.
>>> '%+02d'% (0)
'00'
Cpython will respond with '+0'
{} formatting shows the same error.
Regards, Erik
%string formatting on decimal zero bug
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: %string formatting on decimal zero bug
I have raised this as an issue on GitHub. https://github.com/micropython/micropython/issues/2955
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: %string formatting on decimal zero bug
This is now fixed. Thanks for the report!