Skip to content

Commit dfba1f6

Browse files
taleinatgpshead
authored andcommitted
bpo-33899: Mention tokenize behavior change in What's New (GH-10073)
1 parent c46db92 commit dfba1f6

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

Doc/whatsnew/3.6.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2414,3 +2414,11 @@ Notable changes in Python 3.6.5
24142414
The :func:`locale.localeconv` function now sets temporarily the ``LC_CTYPE``
24152415
locale to the ``LC_NUMERIC`` locale in some cases.
24162416
(Contributed by Victor Stinner in :issue:`31900`.)
2417+
2418+
Notable changes in Python 3.6.7
2419+
===============================
2420+
2421+
In 3.6.7 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token
2422+
when provided with input that does not have a trailing new line. This behavior
2423+
now matches what the C tokenizer does internally.
2424+
(Contributed by Ammar Askar in :issue:`33899`.)

Doc/whatsnew/3.7.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,3 +2507,8 @@ calling :c:func:`Py_Initialize`.
25072507
In 3.7.1 the C API for Context Variables
25082508
:ref:`was updated <contextvarsobjects_pointertype_change>` to use
25092509
:c:type:`PyObject` pointers. See also :issue:`34762`.
2510+
2511+
In 3.7.1 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token
2512+
when provided with input that does not have a trailing new line. This behavior
2513+
now matches what the C tokenizer does internally.
2514+
(Contributed by Ammar Askar in :issue:`33899`.)

Doc/whatsnew/3.8.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@ Added :attr:`SSLContext.post_handshake_auth` to enable and
173173
post-handshake authentication.
174174
(Contributed by Christian Heimes in :issue:`34670`.)
175175

176+
tokenize
177+
--------
178+
179+
The :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token when
180+
provided with input that does not have a trailing new line. This behavior
181+
now matches what the C tokenizer does internally.
182+
(Contributed by Ammar Askar in :issue:`33899`.)
183+
176184
tkinter
177185
-------
178186

0 commit comments

Comments
 (0)