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 elonjigar
Recipients elonjigar, prasechen, steven.daprano
Date 2021-06-08.07:11:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623136303.47.0.395842489289.issue41716@roundup.psfhosted.org>
In-reply-to
Content
An EOL while scanning string literal error indicates that the Python interpreter expected a particular character or set of characters to have occurred in a specific line of code, but that those characters were not found before the end of the line . This results in Python stopping the program execution and throwing a syntax error . In most cases, this is  due to the following reasons:

    Missing quotes
    Strings spanning multiple lines

Strings can't normally span multiple lines. If you don't want the string to appear on multiple lines but you want to initialize it on multiple lines (so you can read it more easily), you can "escape" the newline by putting a backslash before the newline. If you want it to appear on multiple lines, you can use triple quotes around the string.

http://net-informations.com/python/err/eol.htm
History
Date User Action Args
2021-06-08 07:11:43elonjigarsetrecipients: + elonjigar, steven.daprano, prasechen
2021-06-08 07:11:43elonjigarsetmessageid: <1623136303.47.0.395842489289.issue41716@roundup.psfhosted.org>
2021-06-08 07:11:43elonjigarlinkissue41716 messages
2021-06-08 07:11:42elonjigarcreate