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