Commit 4b8c1991 authored by Stefan Behnel's avatar Stefan Behnel

make Generator.throw() ABC method abstract to follow CPython

parent aae844f4
...@@ -881,6 +881,7 @@ def mk_gen(): ...@@ -881,6 +881,7 @@ def mk_gen():
def send(self, value): def send(self, value):
raise StopIteration raise StopIteration
@abstractmethod
def throw(self, typ, val=None, tb=None): def throw(self, typ, val=None, tb=None):
if val is None: if val is None:
if tb is None: if tb is None:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment