4 ms·
It still does not parse all ISO 8601 format strings: "ISO 8601, RFC 3339 and datetime.isoformat() are three slightly different and in some senses incompatible d
by 1wd 6y ago
It still does not parse all ISO 8601 format strings: "ISO 8601, RFC 3339 and datetime.isoformat() are three slightly different and in some senses incompatible datetime serialization formats" https://bugs.python.org/issue35829 https://bugs.python.org/issue35829 For example it rejects typical strings produced by Javascript using Z instead of +00:00 as the timezone suffix.
- MaxBarraclough 6y agoIs there a bug filed for this?
- uranusjr 6y agoIIRC this was considered out of scope. fromisoformat is defined as the functional inverse of toisoformat, and since the latter never emits Zulu, the former does not parse it. The only “reasonable” fix would be to rename those functions to something else, but every report on this I’ve seen stop right here. Core maintainers are not really interested in changing this until someone makes them, and nobody really demanded the rename.