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 gvanrossum
Recipients christian.heimes, gvanrossum, nnorwitz, roudkerk, theller
Date 2007-11-15.00:00:46
SpamBayes Score 0.029181631
Marked as misclassified No
Message-id <1195084847.01.0.29307374899.issue1378@psf.upfronthosting.co.za>
In-reply-to
Content
Here's a new version along the lines I described. Please test on
Windows. It works on Linux and OSX. What this includes:

- the dup-on-windows implementation by R Oudkerk, with the
GetLastError() suggestion from Thomas Heller.

- Replace the C implementations of dup() and accept() with _dup() and
_accept() that return file descriptors instead of socket objects.

- Implement accept() and dup() in Python using _accept() and _dup().

- Get rid of socket.fromfd(). You can use socket.socket(..., fileno=...)
instead (it doesn't dup though).
Files
File name Uploaded
socket.diff gvanrossum, 2007-11-15.00:00:46
History
Date User Action Args
2007-11-15 00:00:47gvanrossumsetspambayes_score: 0.0291816 -> 0.029181631
recipients: + gvanrossum, nnorwitz, theller, christian.heimes, roudkerk
2007-11-15 00:00:47gvanrossumsetspambayes_score: 0.0291816 -> 0.0291816
messageid: <1195084847.01.0.29307374899.issue1378@psf.upfronthosting.co.za>
2007-11-15 00:00:46gvanrossumlinkissue1378 messages
2007-11-15 00:00:46gvanrossumcreate