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
Bugs in the lexer and parser documentation #66171
Comments
The lexer documentation says that the u prefix works on strings since 3.3, but doesn't explain what or how, which is all the more problematic since it explicitly mentions difference from the behavior documented in Python 2. It also doesn't specify the ELLIPSIS token or the <> future token mentioned in the grammar (that should probably be removed, for PEP-401 is a joke — unless that's intentional, in which case a smiley might be useful). |
I don't understand. It says "it is possible again to prefix unicode strings with a u prefix" which seems to include both what ("prefix unicode strings") and how ("with a u prefix"). Can you propose specific wording that you want to see included? |
Actually, my reading was buggy, and the "u" part is well-documented enough. Apologies for this part of the bug report. The lexer documentation is still missing the ellipsis, though Other bug I found in the lexer documentation: missing @= And the parser documentation of <> is probably a bug. |
The ellipsis is also mentioned: "A sequence of three periods has a special meaning as an ellipsis literal." |
The PEP-401 joke actually works: >>> from __future__ import barry_as_FLUFL
>>> 3<>4
True I'll add a smiley |
New changeset 57740d19f5c2 by Martin v. Löwis in branch 'default': |
I've moved the @ operator into bpo-22142. With that, it seems to me that all aspects of this report are resolved. François-René, for the future, please submit an individual bug report for each independent issue; this makes it easier tracking what has and hasn't been resolved. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: