MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

sorts/external_sort.py:13–15  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

11 BLOCK_FILENAME_FORMAT = "block_{0}.dat"
12
13 def __init__(self, filename):
14 self.filename = filename
15 self.block_filenames = []
16
17 def write_block(self, data, block_number):
18 filename = self.BLOCK_FILENAME_FORMAT.format(block_number)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected