2014-05-10 16:54:23 +03:00
|
|
|
try:
|
|
|
|
frozenset
|
|
|
|
except NameError:
|
|
|
|
print("SKIP")
|
2017-06-10 20:03:01 +03:00
|
|
|
raise SystemExit
|
2014-05-10 16:54:23 +03:00
|
|
|
|
|
|
|
s = frozenset({1, 2, 3, 4})
|
|
|
|
try:
|
|
|
|
print(s.add(5))
|
|
|
|
except AttributeError:
|
|
|
|
print("AttributeError")
|
2016-09-28 11:06:18 +10:00
|
|
|
|
|
|
|
try:
|
|
|
|
print(s.update([5]))
|
|
|
|
except AttributeError:
|
|
|
|
print("AttributeError")
|