Lines Matching defs:throw
800 def throw(self, typ, val=None, tb=None):
801 super().throw(typ, val, tb)
852 def throw(self, typ, val=None, tb=None):
853 super().throw(typ, val, tb)
857 self.validate_abstract_methods(Coroutine, '__await__', 'send', 'throw')
882 def throw(self, typ, val=None, tb=None):
1170 def throw(self, typ, val=None, tb=None): pass
1181 def throw(self, typ, val=None, tb=None): pass
1195 def throw(self, typ, val=None, tb=None): pass
1200 def throw(self, typ, val=None, tb=None):
1201 super().throw(typ, val, tb)
1211 self.validate_abstract_methods(Generator, 'send', 'throw')
1219 self.assertRaises(ValueError, mgen.throw, ValueError)
1221 mgen.throw, ValueError, ValueError("huhu"))
1222 self.assertRaises(StopIteration, mgen.throw, StopIteration())
1226 def throw(self, *args): raise ValueError
1232 def throw(self, *args): pass