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