Skip to content

Commit b4c9874

Browse files
taleinatmiss-islington
authored andcommitted
[3.7] bpo-33899: Mention tokenize behavior change in What's New (GH-10073) (GH-10074)
(cherry picked from commit dfba1f6) https://bugs.python.org/issue33899
1 parent 861f61b commit b4c9874

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-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
@@ -2523,3 +2523,8 @@ In 3.7.1 the C API for Context Variables
25232523

25242524
:mod:`xml.dom.minidom` and :mod:`xml.sax` modules no longer process
25252525
external entities by default. See also :issue:`17239`.
2526+
2527+
In 3.7.1 the :mod:`tokenize` module now implicitly emits a ``NEWLINE`` token
2528+
when provided with input that does not have a trailing new line. This behavior
2529+
now matches what the C tokenizer does internally.
2530+
(Contributed by Ammar Askar in :issue:`33899`.)

0 commit comments

Comments
 (0)