]> granicus.if.org Git - python/commitdiff
bpo-33899: Mention tokenize behavior change in What's New (GH-10073)
authorTal Einat <taleinat+github@gmail.com>
Wed, 24 Oct 2018 07:20:05 +0000 (10:20 +0300)
committerGregory P. Smith <greg@krypto.org>
Wed, 24 Oct 2018 07:20:05 +0000 (00:20 -0700)
Doc/whatsnew/3.6.rst
Doc/whatsnew/3.7.rst
Doc/whatsnew/3.8.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 ea460b74025e35b0b6b07744a9cbd35e748dac64..d4daf8f71f9ce2f2ea4e16556052aa0b19a08584 100644 (file)
@@ -2507,3 +2507,8 @@ calling :c:func:`Py_Initialize`.
 In 3.7.1 the C API for Context Variables
 :ref:`was updated <contextvarsobjects_pointertype_change>` to use
 :c:type:`PyObject` pointers.  See also :issue:`34762`.
+
+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`.)
index 93dd24acaa8aaaafa7324de827c3a0609a147e0a..a09492137e779e2d96223d0a66783807fcfa1e35 100644 (file)
@@ -173,6 +173,14 @@ Added :attr:`SSLContext.post_handshake_auth` to enable and
 post-handshake authentication.
 (Contributed by Christian Heimes in :issue:`34670`.)
 
+tokenize
+--------
+
+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`.)
+
 tkinter
 -------