You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Allow format specifier "%p" to indicate a nonterminal name, like "%c" allows. store_subscr -> store_subscript to match Python AST a little closer.
12 lines
248 B
Python
12 lines
248 B
Python
# 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
|