MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / open

Method open

tools/python-3.11.9-amd64/Lib/pathlib.py:1036–1044  ·  view source on GitHub ↗

Open the file pointed by this path and return a file object, as the built-in open() function does.

(self, mode='r', buffering=-1, encoding=None,
             errors=None, newline=None)

Source from the content-addressed store, hash-verified

1034 raise NotImplementedError("Path.group() is unsupported on this system")
1035
1036 def open(self, mode='r', buffering=-1, encoding=None,
1037 errors=None, newline=None):
1038 """
1039 Open the file pointed by this path and return a file object, as
1040 the built-in open() function does.
1041 """
1042 if "b" not in mode:
1043 encoding = io.text_encoding(encoding)
1044 return io.open(self, mode, buffering, encoding, errors, newline)
1045
1046 def read_bytes(self):
1047 """

Callers 15

read_bytesMethod · 0.95
read_textMethod · 0.95
write_bytesMethod · 0.95
write_textMethod · 0.95
fdopenFunction · 0.45
unix_getpassFunction · 0.45
_open_terminalFunction · 0.45
slave_openFunction · 0.45
forkFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
synopsisFunction · 0.45

Calls

no outgoing calls

Tested by 2

test_aifcFunction · 0.36
test_wavFunction · 0.36