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

Method split

Lib/test/test_str.py:2763–2766  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

2761
2762 def test_formatter_field_name_split(self):
2763 def split(name):
2764 items = list(_string.formatter_field_name_split(name))
2765 items[1] = list(items[1])
2766 return items
2767 self.assertEqual(split("obj"), ["obj", []])
2768 self.assertEqual(split("obj.arg"), ["obj", [(True, 'arg')]])
2769 self.assertEqual(split("obj[key]"), ["obj", [(False, 'key')]])

Callers 15

goMethod · 0.45
filter_commandMethod · 0.45
get_filterMethod · 0.45
ok_commandMethod · 0.45
_fixresultMethod · 0.45
_fixresultMethod · 0.45
_unbindMethod · 0.45
nametowidgetMethod · 0.45
_list_from_statespecFunction · 0.45
test_chunkcodingMethod · 0.45
unichrsMethod · 0.45

Calls 1

listClass · 0.85

Tested by

no test coverage detected