Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustPython/RustPython
/ throw
Method
throw
Lib/test/test_generators.py:963–964 ·
view source on GitHub ↗
(self, *args)
Source
from the content-addressed store, hash-verified
961
def
__init__(self, test):
962
self.test = test
963
def
throw(self, *args):
964
self.test.check_stack_names(sys._getframe(), [
'throw'
,
'g'
])
965
def
__iter__(self):
966
return
self
967
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