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 Jim Fasarakis-Hilliard
Recipients Jim Fasarakis-Hilliard, docs@python
Date 2017-04-03.12:49:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1491223765.12.0.65807116216.issue29968@psf.upfronthosting.co.za>
In-reply-to
Content
After looking through the code, the tokenizer only allows a new line character to proceed `\` in explicit line joining [1].

The Devguide section on it [2] actually states many of the limitations of using `\` but not directly that nothing is allowed after it (it does have a remark on comments). 

Would it be a good idea to amend it to state that no characters are allowed after `\`?

[1]: https://github.com/python/cpython/blob/734125938d4653459593ebd28a0aec086efb1f27/Parser/tokenizer.c#L1847
[2]: https://docs.python.org/3/reference/lexical_analysis.html#explicit-line-joining
History
Date User Action Args
2017-04-03 12:49:25Jim Fasarakis-Hilliardsetrecipients: + Jim Fasarakis-Hilliard, docs@python
2017-04-03 12:49:25Jim Fasarakis-Hilliardsetmessageid: <1491223765.12.0.65807116216.issue29968@psf.upfronthosting.co.za>
2017-04-03 12:49:25Jim Fasarakis-Hilliardlinkissue29968 messages
2017-04-03 12:49:24Jim Fasarakis-Hilliardcreate