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

Class list

Lib/test/test_reprlib.py:621–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619 # Issue #113570: repr() should not be fooled
620 # by a shadowed builtin function
621 class list:
622 def __repr__(self):
623 return "not builtins.list"
624
625 self.assertEqual(r(list()), "not builtins.list")
626

Callers 15

nbody.pyFile · 0.85
fannkuchFunction · 0.85
_c3_mroFunction · 0.85
_convertFunction · 0.85
__new__Method · 0.85
_get_exports_listFunction · 0.85
__iter__Method · 0.85
format_stringFunction · 0.85
PyUnicode_EncodeCharmapFunction · 0.85
filterfalseFunction · 0.85
_parse_isoformat_dateFunction · 0.85
__reduce__Method · 0.85

Calls

no outgoing calls

Tested by 15

output_differenceMethod · 0.68
test_streamreaderMethod · 0.68
test_streamwriterMethod · 0.68
test_insortMethod · 0.68
test_vsBuiltinSortMethod · 0.68
test_stream_bomMethod · 0.68