MCPcopy Index your code
hub / github.com/RustPython/RustPython / V

Class V

Lib/test/test_xml_etree.py:3071–3074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3069
3070 def test_ass_subscr_with_mutating_iterable_value(self):
3071 class V:
3072 def __iter__(self):
3073 e.clear()
3074 return iter([ET.Element('a'), ET.Element('b')])
3075
3076 e = ET.Element('elem')
3077 e.extend([ET.Element(f'c{i}') for i in range(10)])

Calls

no outgoing calls