MCPcopy Index your code
hub / github.com/python/cpython / V

Class V

Lib/test/test_xml_etree.py:3116–3119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3114
3115 def test_ass_subscr_with_mutating_iterable_value(self):
3116 class V:
3117 def __iter__(self):
3118 e.clear()
3119 return iter([ET.Element('a'), ET.Element('b')])
3120
3121 e = ET.Element('elem')
3122 e.extend([ET.Element(f'c{i}') for i in range(10)])

Calls

no outgoing calls