You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
store_subscript precedence fix and...
Allow format specifier "%p" to indicate a nonterminal name, like "%c" allows. store_subscr -> store_subscript to match Python AST a little closer.
This commit is contained in:
11
test/simple_source/expression/04_subscript.py
Normal file
11
test/simple_source/expression/04_subscript.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# From 3.6.8 idlelib/query.py
|
||||
# Bug was handling parens around subscript
|
||||
|
||||
# RUNNABLE!
|
||||
a = {'text': 1}
|
||||
b = {'text': 3}
|
||||
for widget, entry, expect in (
|
||||
(a, b, 1),
|
||||
(None, b, 3)
|
||||
):
|
||||
assert (widget or entry)['text'] == expect
|
Reference in New Issue
Block a user