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

Method getnames

Lib/tarfile.py:2136–2140  ·  view source on GitHub ↗

Return the members of the archive as a list of their names. It has the same order as the list returned by getmembers().

(self)

Source from the content-addressed store, hash-verified

2134 return self.members
2135
2136 def getnames(self):
2137 """Return the members of the archive as a list of their names. It has
2138 the same order as the list returned by getmembers().
2139 """
2140 return [tarinfo.name for tarinfo in self.getmembers()]
2141
2142 def gettarinfo(self, name=None, arcname=None, fileobj=None):
2143 """Create a TarInfo object from the result of os.stat or equivalent

Callers 15

_tarinfoMethod · 0.80
test_make_tarfileMethod · 0.80
test_empty_tarfileMethod · 0.80
test_ignore_zerosMethod · 0.80
test_100_char_nameMethod · 0.80
test_add_selfMethod · 0.80
test_createMethod · 0.80
test_create_existingMethod · 0.80
test_create_taropenMethod · 0.80

Calls 1

getmembersMethod · 0.95

Tested by 15

_tarinfoMethod · 0.64
test_make_tarfileMethod · 0.64
test_empty_tarfileMethod · 0.64
test_ignore_zerosMethod · 0.64
test_100_char_nameMethod · 0.64
test_add_selfMethod · 0.64
test_createMethod · 0.64
test_create_existingMethod · 0.64
test_create_taropenMethod · 0.64