[issue21686] IDLE - Test hyperparser
Terry J. Reedy
report at bugs.python.org
Tue Jun 17 01:17:46 CEST 2014
Terry J. Reedy added the comment:
Attached is the 3.4 patch as pushed. The main 'invisible' change, other than the review comment, was to create the code string just once.
I discovered that the earlier version had a bug in saying 'ok' to the 3.x HyperParser bug of no longer recognizing 'False', etc, as identifiers due to being made keywords. The buggy test properly failed on 2.7. I did the easy fix and split the bad test into two.
Since the 2.7 and 3.x versions of HyperParser were identical before the fix, the 3.x version must also not recognize the new ... Ellipsis literal. Tal, do you think doing so would be sensibly possible? (IE, would it be worth a new issue?)
...
x = ...
print(...)
are all legal 3.x expressions.
----------
resolution: -> fixed
stage: -> resolved
status: open -> closed
Added file: http://bugs.python.org/file35661/test-hp-34-push.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21686>
_______________________________________
More information about the Python-bugs-list
mailing list