Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ throw
Method
throw
Lib/test/test_generators.py:956–957 ·
view source on GitHub ↗
(self, *args)
Source
from the content-addressed store, hash-verified
954
def
__init__(self, test):
955
self.test = test
956
def
throw(self, *args):
957
self.test.check_stack_names(sys._getframe(), [
'throw'
,
'g'
])
958
def
__iter__(self):
959
return
self
960
def
__next__(self):
Callers
11
test_except_throw
Method · 0.45
test_except_throw_exception_context
Method · 0.45
test_except_throw_bad_exception
Method · 0.45
test_gen_3_arg_deprecation_warning
Method · 0.45
test_exception_context_with_yield
Method · 0.45
test_exception_context_with_yield_inside_generator
Method · 0.45
test_exception_context_with_yield_from
Method · 0.45
test_exception_context_with_yield_from_with_context_cycle
Method · 0.45
test_throw_after_none_exc_type
Method · 0.45
call_throw
Method · 0.45
test_throw_with_yield_from_custom_generator
Method · 0.45
Calls
1
check_stack_names
Method · 0.80
Tested by
no test coverage detected