Lines Matching defs:throw
530 def throw(self, typ, val=None, tb=None):
531 super().throw(typ, val, tb)
580 def throw(self, typ, val=None, tb=None):
581 super().throw(typ, val, tb)
608 def throw(self, typ, val=None, tb=None):
897 def throw(self, typ, val=None, tb=None): pass
908 def throw(self, typ, val=None, tb=None): pass
922 def throw(self, typ, val=None, tb=None): pass
927 def throw(self, typ, val=None, tb=None):
928 super().throw(typ, val, tb)
938 self.validate_abstract_methods(Generator, 'send', 'throw')
946 self.assertRaises(ValueError, mgen.throw, ValueError)
948 mgen.throw, ValueError, ValueError("huhu"))
949 self.assertRaises(StopIteration, mgen.throw, StopIteration())
953 def throw(self, *args): raise ValueError
959 def throw(self, *args): pass