[New-bugs-announce] [issue28148] Also stop using localtime() in timemodule
report at bugs.python.org
Wed Sep 14 08:35:29 EDT 2016
New submission from Ed Schouten:
In issue 28067, we changed _datetimemodule to stop using localtime() and gmtime(), which is nice. I actually needed such a change for CloudABI (https://mail.python.org/pipermail/python-dev/2016-July/145708.html) which does not provide the thread-unsafe variants. Only localtime_r() and gmtime_r() are provided.
If we're starting to make use of these functions, let's complete this by also changing timemodule to use them. I've attached a patch.
Maybe it now makes sense to move the Windows wrappers to some header file, so that they can be shared between both modules. What would be the right location for this?
components: Extension Modules
title: Also stop using localtime() in timemodule
versions: Python 3.6
Added file: http://bugs.python.org/file44660/patch-no-gmtime-localtime
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce