Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ Broken
Class
Broken
Lib/test/test_yield_from.py:546–552 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
544
Test subiterator
with
a broken getattr implementation
545
""
"
546
class
Broken:
547
def
__iter__(self):
548
return
self
549
def
__next__(self):
550
return
1
551
def
__getattr__(self, attr):
552
1/0
553
554
def
g():
555
yield
from
Broken()
Callers
1
g
Method · 0.70
Calls
no outgoing calls
Tested by
1
g
Method · 0.56