Message285061
io.open() is high-level function. It handles buffering, encoding, newline translating. It is even higher-level than C's fopen().
Syscall open() is low-level. Python os.open() is an interface to this low-level feature.
There is a connection between low and high level -- io.open() accepts a file descriptor returned by os.open(). You also can provide the opener argument.
I don't think io.open() needs the support of mode and dir_fd arguments and all possible O_* flags. They are low-level features. |
|
Date |
User |
Action |
Args |
2017-01-09 17:55:37 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, christian.heimes, socketpair |
2017-01-09 17:55:37 | serhiy.storchaka | set | messageid: <1483984537.72.0.463942556499.issue29214@psf.upfronthosting.co.za> |
2017-01-09 17:55:37 | serhiy.storchaka | link | issue29214 messages |
2017-01-09 17:55:37 | serhiy.storchaka | create | |
|