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 vstinner
Recipients christian.heimes, sbt, serhiy.storchaka, socketpair, vstinner
Date 2013-07-04.19:39:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372966790.77.0.288151374713.issue18329@psf.upfronthosting.co.za>
In-reply-to
Content
On Python 2, socket.makefile("rb") duplicates the file descriptor and creates a new file object: fileobj.read() calls the C function read().

On Python 3, socket.makefile("rb") creates a SocketIO wrapped in BufferedReader: fileobj.read() calls the C function recv() (recvfrom() syscall).

For a UNIX socket, read() is maybe more efficient than recv().
History
Date User Action Args
2013-07-04 19:39:50vstinnersetrecipients: + vstinner, christian.heimes, socketpair, sbt, serhiy.storchaka
2013-07-04 19:39:50vstinnersetmessageid: <1372966790.77.0.288151374713.issue18329@psf.upfronthosting.co.za>
2013-07-04 19:39:50vstinnerlinkissue18329 messages
2013-07-04 19:39:50vstinnercreate