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

Function get_unpack_formats

Lib/shutil.py:1251–1260  ·  view source on GitHub ↗

Returns a list of supported formats for unpacking. Each element of the returned sequence is a tuple (name, extensions, description)

()

Source from the content-addressed store, hash-verified

1249
1250
1251def get_unpack_formats():
1252 """Returns a list of supported formats for unpacking.
1253
1254 Each element of the returned sequence is a tuple
1255 (name, extensions, description)
1256 """
1257 formats = [(name, info[0], info[3]) for name, info in
1258 _UNPACK_FORMATS.items()]
1259 formats.sort()
1260 return formats
1261
1262def _check_unpack_options(extensions, function, extra_args):
1263 """Checks what gets registered as an unpacker."""

Callers 1

test_unpack_registryMethod · 0.90

Calls 2

itemsMethod · 0.45
sortMethod · 0.45

Tested by 1

test_unpack_registryMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…