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

Method set_data

Lib/importlib/_bootstrap_external.py:784–788  ·  view source on GitHub ↗

Optional method which writes data (bytes) to a file path (a str). Implementing this method allows for the writing of bytecode files.

(self, path, data)

Source from the content-addressed store, hash-verified

782 return self.set_data(cache_path, data)
783
784 def set_data(self, path, data):
785 """Optional method which writes data (bytes) to a file path (a str).
786
787 Implementing this method allows for the writing of bytecode files.
788 """
789
790
791 def get_source(self, fullname):

Callers 1

_cache_bytecodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected