4216bc7d13
This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
18 lines
303 B
Python
18 lines
303 B
Python
try:
|
|
from collections import namedtuple
|
|
except ImportError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
t = namedtuple("Tup", ["baz", "foo", "bar"])(3, 2, 5)
|
|
|
|
try:
|
|
t._asdict
|
|
except AttributeError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
d = t._asdict()
|
|
print(list(d.keys()))
|
|
print(list(d.values()))
|