STINNER Victor added the comment: Here is a more complete patch (version 3). It uses _PyTimeSpec in more functions.
I tested the patch on Linux, Windows, FreeBSD, OpenBSD. I was surprised to find bugs. For example, Windows has a time_t larger than long, whereas OpenBSD 5.4 (on 64 bit) has a time_t smaller than long. ---------- Added file: http://bugs.python.org/file36200/timespec-3.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22117> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com