Files
python-uncompyle6/test/simple_source/expression/03_tuple_assign.py

18 lines
420 B
Python

# Github Issue #57 with Python 2.7
def some_function():
return ['some_string']
def some_other_function():
some_variable, = some_function()
print(some_variable)
# From 2.7 test_compile.py
# Bug is adding erroneous parens in d[(1:2, 1:2)] += 1
def bug(d):
d[1:2, 1:2] += 1
empty_tup = ()
one_item_tup = ("item1", )
one_item_tup_without_parentheses = "item",
many_items_tup = ("item1", "item2", "item3")