Commit 15157d4c authored by Victor Stinner's avatar Victor Stinner

NEWS: merge #1777412 and #10827 entries

parent e9acea5e
...@@ -40,11 +40,6 @@ Core and Builtins ...@@ -40,11 +40,6 @@ Core and Builtins
Library Library
------- -------
- Issue #1777412: minimum year for time.asctime(), time.ctime() and
time.strftime() is now: 1000 instead of 1900 by default (accept2dyear=0) and
not limited instead of 1900 if accept2dyear=1. With Visual Studio or on
Solaris, the year is limited to the range [1; 9999].
- Issue #10859: Make ``contextlib.GeneratorContextManager`` officially - Issue #10859: Make ``contextlib.GeneratorContextManager`` officially
private by renaming it to ``_GeneratorContextManager``. private by renaming it to ``_GeneratorContextManager``.
...@@ -60,12 +55,12 @@ Library ...@@ -60,12 +55,12 @@ Library
without folding whitespace. It now uses the continuation_ws, as it without folding whitespace. It now uses the continuation_ws, as it
does for continuation lines that it creates itself. does for continuation lines that it creates itself.
- Issue #10827: Changed the rules for 2-digit years. The time.asctime - Issue #1777412, #10827: Changed the rules for 2-digit years. The
function will now format any year when ``time.accept2dyear`` is time.asctime(), time.ctime() and time.strftime() functions will now format
false and will accept years >= 1000 otherwise. The year range any year when ``time.accept2dyear`` is False and will accept years >= 1000
accepted by ``time.mktime`` and ``time.strftime`` is still system otherwise. ``time.mktime`` and ``time.strftime`` now accept full range
dependent, but ``time.mktime`` will now accept full range supported supported by the OS. With Visual Studio or on Solaris, the year is limited to
by the OS. Conversion of 2-digit years to 4-digit is deprecated. the range [1; 9999]. Conversion of 2-digit years to 4-digit is deprecated.
- Issue #7858: Raise an error properly when os.utime() fails under Windows - Issue #7858: Raise an error properly when os.utime() fails under Windows
on an existing file. on an existing file.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment