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

Method getmembers

Lib/tarfile.py:2145–2153  ·  view source on GitHub ↗

Return the members of the archive as a list of TarInfo objects. The list has the same order as the members in the archive.

(self)

Source from the content-addressed store, hash-verified

2143 return tarinfo
2144
2145 def getmembers(self):
2146 """Return the members of the archive as a list of TarInfo objects. The
2147 list has the same order as the members in the archive.
2148 """
2149 self._check()
2150 if not self._loaded: # if we want to obtain a list of
2151 self._load() # all members, we first have to
2152 # scan the whole archive.
2153 return self.members
2154
2155 def getnames(self):
2156 """Return the members of the archive as a list of their names. It has

Callers 15

getnamesMethod · 0.95
_getmemberMethod · 0.95
allmethodsFunction · 0.80
docmoduleMethod · 0.80
docmoduleMethod · 0.80
mainFunction · 0.80
membersMethod · 0.80
test_empty_tarfileMethod · 0.80
test_find_membersMethod · 0.80

Calls 2

_checkMethod · 0.95
_loadMethod · 0.95

Tested by 15

membersMethod · 0.64
test_empty_tarfileMethod · 0.64
test_find_membersMethod · 0.64
test_filterMethod · 0.64
_testMethod · 0.64