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
parser module validation failure #37862
Comments
C:\>c:\python23\python
Python 2.3a1 (#38, Dec 31 2002, 17:53:59) [MSC
v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more
information.
>>> import parser
>>> a = file('c:\\python23\\lib\\base64.py').read()
>>> b = parser.suite(a)
>>> c = parser.ast2tuple(b)
>>> d = parser.sequence2ast(c)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
parser.ParserError: VALIDATION FAILURE: report this
to the maintainer!
>>> ^Z C:\> Problem also occurred on Python 2.2.2 on WinXP and |
Logged In: YES The problem is floor division // on the line: MAXBINSIZE = (MAXLINESIZE//4)*3 |
Logged In: YES So the attached would be the fix, then? I feel a "How to change Python's grammar" informational PEP |
Logged In: YES I'm not familiar with the parser module (this is the first As for the PEP, I think it's a good idea. It would help |
Logged In: YES Checked in as: Modules/parsermodule.c revision 2.75 logistix, can you check this works for you? PEP already with editors. It wasn't very long, as it turned |
Logged In: YES Yeah, works fine. Thanks for the prompt action. |
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: