This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile, BCSharp, SilentGhost, benjamin.peterson, brett.cannon, yselivanov
Date 2019-05-19.03:30:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558236627.07.0.0412328697922.issue36919@roundup.psfhosted.org>
In-reply-to
Content
still not able to answer the why, but at least I can answer the what here:

https://github.com/python/cpython/blob/f665b96e92a6a6943e312e2c606f348db95939ab/Parser/tokenizer.c#L984-L987

cpython adds a newline during tokenization if the file does not end in a newline
History
Date User Action Args
2019-05-19 03:30:27Anthony Sottilesetrecipients: + Anthony Sottile, brett.cannon, benjamin.peterson, SilentGhost, yselivanov, BCSharp
2019-05-19 03:30:27Anthony Sottilesetmessageid: <1558236627.07.0.0412328697922.issue36919@roundup.psfhosted.org>
2019-05-19 03:30:27Anthony Sottilelinkissue36919 messages
2019-05-19 03:30:26Anthony Sottilecreate