I would very much welcome this to the standard library as it seems like a
useful function; I certainly would make good use of it and I'm sure others
working with durations use similar code for user-facing parts.
> With a go like parsing it would be:
> >>> datetime.parse_duration("2w50d8h5m27s10ms2000us")
I feel like this would fit better as an alternate constructor (e.g.
timedelta.from_string) however
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/ZSU7Y4AWNBTQ53CPG32JN4GE3RSHR5OY/
Code of Conduct: http://python.org/psf/codeofconduct/