Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ec899f

Browse files
author
Victor Stinner
committed
NEWS: merge #1777412 and #10827 entries
1 parent f7d019e commit 3ec899f

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

Misc/NEWS

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ Core and Builtins
4040
Library
4141
-------
4242

43-
- Issue #1777412: minimum year for time.asctime(), time.ctime() and
44-
time.strftime() is now: 1000 instead of 1900 by default (accept2dyear=0) and
45-
not limited instead of 1900 if accept2dyear=1. With Visual Studio or on
46-
Solaris, the year is limited to the range [1; 9999].
47-
4843
- Issue #10859: Make ``contextlib.GeneratorContextManager`` officially
4944
private by renaming it to ``_GeneratorContextManager``.
5045

@@ -60,12 +55,12 @@ Library
6055
without folding whitespace. It now uses the continuation_ws, as it
6156
does for continuation lines that it creates itself.
6257

63-
- Issue #10827: Changed the rules for 2-digit years. The time.asctime
64-
function will now format any year when ``time.accept2dyear`` is
65-
false and will accept years >= 1000 otherwise. The year range
66-
accepted by ``time.mktime`` and ``time.strftime`` is still system
67-
dependent, but ``time.mktime`` will now accept full range supported
68-
by the OS. Conversion of 2-digit years to 4-digit is deprecated.
58+
- Issue #1777412, #10827: Changed the rules for 2-digit years. The
59+
time.asctime(), time.ctime() and time.strftime() functions will now format
60+
any year when ``time.accept2dyear`` is False and will accept years >= 1000
61+
otherwise. ``time.mktime`` and ``time.strftime`` now accept full range
62+
supported by the OS. With Visual Studio or on Solaris, the year is limited to
63+
the range [1; 9999]. Conversion of 2-digit years to 4-digit is deprecated.
6964

7065
- Issue #7858: Raise an error properly when os.utime() fails under Windows
7166
on an existing file.

0 commit comments

Comments
 (0)