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

Method set_data

Lib/importlib/_bootstrap_external.py:801–805  ·  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

799 return self.set_data(cache_path, data)
800
801 def set_data(self, path, data):
802 """Optional method which writes data (bytes) to a file path (a str).
803
804 Implementing this method allows for the writing of bytecode files.
805 """
806
807
808 def get_source(self, fullname):

Callers 1

_cache_bytecodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected