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)
| 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 | """ |
no outgoing calls