]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.7] bpo-33899: Mention tokenize behavior change in What's New (GH-10073) (GH-10074)
authorTal Einat <taleinat+github@gmail.com>
Wed, 24 Oct 2018 07:33:00 +0000 (10:33 +0300)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 24 Oct 2018 07:33:00 +0000 (00:33 -0700)
(cherry picked from commit dfba1f67e7f1381ceb7cec8fbcfa37337620a9b0)

https://bugs.python.org/issue33899

Doc/whatsnew/3.6.rst
Doc/whatsnew/3.7.rst

index fec7c620d3b83eba7c082070f9b82ec7cf2cfd3f..bba16543686c55eebb86ca93c2b043a1225784eb 100644 (file)
@@ -2414,3 +2414,11 @@ Notable changes in Python 3.6.5
 The :func:`locale.localeconv` function now sets temporarily the ``LC_CTYPE``
 locale to the ``LC_NUMERIC`` locale in some cases.
 (Contributed by Victor Stinner in :issue:`31900`.)
+
+Notable changes in Python 3.6.7
+===============================
+
+In 3.6.7 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token
+when provided with input that does not have a trailing new line.  This behavior
+now matches what the C tokenizer does internally.
+(Contributed by Ammar Askar in :issue:`33899`.)
index 9cc79325460e100428cdf773a17e78336b1757be..9a13dae13eab9f80db328fbeeeaa37e034c8e167 100644 (file)
@@ -2523,3 +2523,8 @@ In 3.7.1 the C API for Context Variables
 
 :mod:`xml.dom.minidom` and :mod:`xml.sax` modules no longer process
 external entities by default. See also :issue:`17239`.
+
+In 3.7.1 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token
+when provided with input that does not have a trailing new line.  This behavior
+now matches what the C tokenizer does internally.
+(Contributed by Ammar Askar in :issue:`33899`.)