Message192309
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(). |
|
Date |
User |
Action |
Args |
2013-07-04 19:39:50 | vstinner | set | recipients:
+ vstinner, christian.heimes, socketpair, sbt, serhiy.storchaka |
2013-07-04 19:39:50 | vstinner | set | messageid: <1372966790.77.0.288151374713.issue18329@psf.upfronthosting.co.za> |
2013-07-04 19:39:50 | vstinner | link | issue18329 messages |
2013-07-04 19:39:50 | vstinner | create | |
|