Message 202220 - Python tracker (original) (raw)
+1 on adding an option to isoformat(). We already have an optional argument, so the symmetry with str is not complete. To make this option more useful, rather than implementing always_emit_microseconds=False flag, I would add a keyword argument 'precision' that would take ('hour'|'minute'|'second'|millisecond'|'microsecond') value.