This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients christian.heimes, serhiy.storchaka, socketpair, vstinner
Date 2017-01-09.17:55:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483984537.72.0.463942556499.issue29214@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-01-09 17:55:37serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, christian.heimes, socketpair
2017-01-09 17:55:37serhiy.storchakasetmessageid: <1483984537.72.0.463942556499.issue29214@psf.upfronthosting.co.za>
2017-01-09 17:55:37serhiy.storchakalinkissue29214 messages
2017-01-09 17:55:37serhiy.storchakacreate