[New-bugs-announce] [issue42091] strftime returns empty string for -d, -I 3.8.3

Pridhvi Myneni report at bugs.python.org
Mon Oct 19 17:07:11 EDT 2020


New submission from Pridhvi Myneni <bluerat33 at gmail.com>:

My system has python from MSYS2 integrated with my windows environment, so I can't test if Windows exhibits the same issue; however, this works perfectly in Ubuntu. The issue is %-d, %-I don't work as expected and instead cause the function call to return an empty string. 

Steps to reproduce:
import datetime
now = datetime.datetime.now()
now.strftime("%-I")
...

----------
messages: 379018
nosy: PMARINA
priority: normal
severity: normal
status: open
title: strftime returns empty string for -d, -I 3.8.3
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42091>
_______________________________________


More information about the New-bugs-announce mailing list