Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ badseq
Class
badseq
Lib/test/mapping_tests.py:281–285 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
279
280
d = self._empty_mapping()
281
class
badseq(object):
282
def
__iter__(self):
283
return
self
284
def
__next__(self):
285
raise
Exc()
286
287
self.assertRaises(Exc, d.update, badseq())
288
Callers
1
test_update
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_update
Method · 0.56
Used in the wild
real call sites across dependent graphs
searching dependent graphs…