%string formatting on decimal zero bug
Posted: Tue Mar 14, 2017 6:40 am
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
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