-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Triple quoted literal definition and 7 in row #103594
Comments
Here was discussion. But it seams nobody understand what I say.... |
As should be expected, 7 quotes are interpreted as triple quote, triple quote, unmatch single quote, and the last is an error.
The quoted lexical analysis section says: The I am inclined to close this as 'not planned', but will wait for opinions others than ours. |
First of all - sorry for my English... ) Ok. May be I am a bit tooo formal. But indeed the docummrntation has no real definition the term So I propose reformat the docs for adding explanation of this term a bit early and the text Account this if it is possible. |
First of all - I am appreciated of your patience and wise accounting all sides. Thanks a lot. You say:
What is th problem to place here - in Python documentation -the real gramma wich define the parser? Look. I so huge loved in Python that I am bealiving that all is perfect that toched to it. |
The doc grammar is for people to read and can have informalities. The formal grammar is for a program to read. One benefit of separating the two was that we cound switch from a formal context-free grammar to a formal program expression grammar (PEG) in 3.10 without changing the docs. You are free to read the PEG. Literal identification is part of the tokenizer in the Parser directory. As far as I could tell, this is done with hand-crafted C rather than generated from a grammar. The python-coded tokenize module uses relational expressions. See 105-118 for the string regexes. Most people find the semi-formal doc productions more readable. |
Thanks a lot. Thanks for being human for such strange people like me. Please do not close this issue 3 days - I will read the tokenizer )) |
Ok. I viewed this lines. Look at 114 row:
As we see So But indeed says So the question is - what behavior is correct? Error - or symbol Here is one another example nonhomogenous behavior... Quatro
|
I love Python I just wanna that it be perfect. I just wanna that """"TEXT"""" gives "TEXT". As for me it will be perfect. Sorry. They say I am agressive. May be it is IDK. |
Documentation
Here
we can read that
But """"""" gives syntax error
So we need rewrite interpretator or point something in documentation, isn`t it?
The text was updated successfully, but these errors were encountered: