Open GoogleCodeExporter opened 9 years ago
To semiblocked:
Hello, see you again,haha.
I have fix this problem,but another problem occured.
To fix this problem,you can add the following grammer in p_grammer function in
Parser.py:
whilestmt ::= SETUP_LOOP
stmts JUMP_IF_FALSE POP_TOP
stmts_opt JUMP_ABSOLUTE COME_FROM
The reason is :
for a while loop, while 1 : is a loop that never stopped if no break, so python
compiler optimized this as 'SETUP_LOOP <then some other statements>', but there
is
none corresponding grammer to handle this in current unpyc.
If you fix this problem ,please let me know. And hope you can fix the left other
problems and tell how do you fix them.
We can talk more about python in future.
Original comment by higerinb...@gmail.com
on 17 Jun 2009 at 1:49
Original issue reported on code.google.com by
semibloc...@gmail.com
on 17 Jun 2009 at 5:42Attachments: