New submission from Miki Tebeka <miki.teb...@gmail.com>:

I suggest adding datetime.timedelta methods that convert to/from str.

The reason is that I have several places where configuration contains various 
timeouts. I'd like to write '50ms' and not 0.05 which is more human readable.

See https://golang.org/pkg/time/#ParseDuration for how Go does it.

----------
components: Library (Lib)
messages: 373380
nosy: tebeka
priority: normal
severity: normal
status: open
title: Add to/from string methods to datetime.timedelta
type: enhancement

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41254>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to