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 serhiy.storchaka
Recipients Isaac Elliott, ammar2, docs@python, gvanrossum, serhiy.storchaka
Date 2018-06-04.04:55:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528088142.11.0.592728768989.issue33766@psf.upfronthosting.co.za>
In-reply-to
Content
Good point Ammar.

Seems there is also a missing corner case in the definition of a physical line:

https://docs.python.org/3.8/reference/lexical_analysis.html#physical-lines
"""
A physical line is a sequence of characters terminated by an end-of-line sequence. In source files, any of the standard platform line termination sequences can be used - the Unix form using ASCII LF (linefeed), the Windows form using the ASCII sequence CR LF (return followed by linefeed), or the old Macintosh form using the ASCII CR (return) character. All of these forms can be used equally, regardless of platform.
"""

It misses a case when a physical line is terminated by the end of file.
History
Date User Action Args
2018-06-04 04:55:42serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, docs@python, ammar2, Isaac Elliott
2018-06-04 04:55:42serhiy.storchakasetmessageid: <1528088142.11.0.592728768989.issue33766@psf.upfronthosting.co.za>
2018-06-04 04:55:42serhiy.storchakalinkissue33766 messages
2018-06-04 04:55:41serhiy.storchakacreate