New submission from Alexander Bolshakov <lex...@gmail.com>:
isoformat function does not conform to the ISO 8601 and drops microseconds part if its value is 000000. The issue can be reproduced using the following code snippet: for i in range(1,10000000): timestamp=datetime.datetime.utcnow().isoformat() if len(timestamp)!=26: print(timestamp) ---------- components: Library (Lib) messages: 365077 nosy: Alexander Bolshakov priority: normal severity: normal status: open title: isoformat function drops microseconds part if its value is 000000 type: behavior versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40076> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com