Files
python-uncompyle6/test/simple_source/bug32/01_try_except_raise.py
2017-05-06 05:25:56 -04:00

10 lines
181 B
Python

# From 3.2 _abcoll.py
def pop(self):
it = iter(self)
try:
value = next(it)
except StopIteration:
raise KeyError
self.discard(value)
return value