Mandar Gokhale added the comment: [Strictly speaking, this is actually issue #10563, but that was marked superseded by the changes for this issue, hence the comment here.]
The 5-digit year still displays an extra newline in Python 2.7.11 (there's extra whitespace on OSX as well, but that seems to due to the fact that ctime() returns 30 bytes on OSX instead of the documented 26): {~}$ /usr/local/bin/python Python 2.7.11 (default, Jan 22 2016, 08:29:18) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> time.ctime(253402300799) 'Fri Dec 31 23:59:59 9999' >>> time.ctime(253402300800) 'Sat Jan 1 00:00:00 10000\n' ...and, as far as I can see, the patch hasn't been applied to py2.7 yet (https://hg.python.org/cpython/file/2.7/Modules/timemodule.c#l579) Please let me know if I am missing something obvious (I'm pretty new to the bugtracker), or if this issue is planned not to be fixed for versions < 3.0. If not, should this issue be reopened, or the py27-specific problem be migrated to a new issue? ---------- nosy: +Mandar Gokhale _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8013> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com