This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mariocj89
Recipients mariocj89, p-ganssle, vinay.sajip
Date 2019-05-31.22:16:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1559340982.47.0.00719928355811.issue37117@roundup.psfhosted.org>
In-reply-to
Content
AFAIK, the converter attribute is only to "be set" with a function of such signature. It is not documented that it can be used and it is only used on the format time function.

The only situation where this might break someone is if they inherit from formatter, substitute the formatTime function by their own implementation and rely on the function returning a time tuple. Doing that is relying on the implementation of the formatter though, as the docs explain is just something to be set.

This could be released as part of a new Python version, I'd be surprised if this is an issue and it will improve quite nicely the way users can configure the formatting of timestamps.

Even if adding it to the cookbook would "work" I think it would be much better to have this change and provide a nicer experience with the default class.

This is your call though! But I'd say it would be quite a nice improvement, was speaking with some other devs at PyCon and they seemed quite excited.
History
Date User Action Args
2019-05-31 22:16:22mariocj89setrecipients: + mariocj89, vinay.sajip, p-ganssle
2019-05-31 22:16:22mariocj89setmessageid: <1559340982.47.0.00719928355811.issue37117@roundup.psfhosted.org>
2019-05-31 22:16:22mariocj89linkissue37117 messages
2019-05-31 22:16:22mariocj89create