-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathuio.pyi
More file actions
29 lines (22 loc) · 1.04 KB
/
uio.pyi
File metadata and controls
29 lines (22 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""
Function:
uio contains additional types of stream (file-like) objects and helper functions. This feature implements a subset of the corresponding CPython feature, as described below.
For more information, refer to the original CPython documentation: https://docs.python.org/3.5/library/io.html#module-io.
Descriptions taken from:
https://python.quectel.com/doc/quecpython/API_reference/en/stdlib/uio.html
"""
def open(name, mode='r', **kwarg):
"""Opens a file. This is an alias for the built-in open() function.
:param name: String type. File name.
:param mode: String type. Open mode.
Open Mode Description
'r' Open a file for reading.
'w' Open a file for writing only. Overwrites the file if the file exists.
'a' Opens a file for appending. The file pointer is at the end of the file, so the content is added to the end.
:param kwargs: Variable-length parameter list.
:return:uio object – Successful execution
:raise: OSError - Failed execution
"""
def close():
"""Close the opened file.
"""