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

Function open

crates/vm/Lib/core_modules/codecs.py:886–935  ·  view source on GitHub ↗

Open an encoded file using the given mode and return a wrapped version providing transparent encoding/decoding. Note: The wrapped version will only accept the object format defined by the codecs, i.e. Unicode objects for most builtin codecs. Output is also codec dep

(filename, mode='r', encoding=None, errors='strict', buffering=-1)

Source from the content-addressed store, hash-verified

Callers

nothing calls this directly

Calls 5

StreamReaderWriterClass · 0.70
lookupFunction · 0.50
warnMethod · 0.45
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected