summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-11-16 16:56:57 (GMT)
committerGitHub <noreply@github.com>2019-11-16 16:56:57 (GMT)
commita0652328a26757a90d63697b5c01f5427b1132b5 (patch)
tree6cd0b03474130783b7319cf94a4ec56f99e28eee /Doc/whatsnew
parentbd44a7ead9f7336d7bb45f186b2b6ca0300154f7 (diff)
downloadcpython-a0652328a26757a90d63697b5c01f5427b1132b5.zip
cpython-a0652328a26757a90d63697b5c01f5427b1132b5.tar.gz
cpython-a0652328a26757a90d63697b5c01f5427b1132b5.tar.bz2
bpo-28286: Deprecate opening GzipFile for writing implicitly. (GH-16417)
Always specify the mode argument for writing.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.9.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index 6e9ddc5..ddb295f 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -239,6 +239,12 @@ Deprecated
the module will restrict its seeds to :const:`None`, :class:`int`,
:class:`float`, :class:`str`, :class:`bytes`, and :class:`bytearray`.
+* Opening the :class:`~gzip.GzipFile` file for writing without specifying
+ the *mode* argument is deprecated. In future Python versions it will always
+ be opened for reading by default. Specify the *mode* argument for opening
+ it for writing and silencing a warning.
+ (Contributed by Serhiy Storchaka in :issue:`28286`.)
+
* Deprecated the ``split()`` method of :class:`_tkinter.TkappType` in
favour of the ``splitlist()`` method which has more consistent and
predicable behavior.