[Web-SIG] Use cases for file-like objects (was Re: Bill's comments on WSGI draft 1.4)

Bill Janssen janssen at parc.com
Thu Sep 9 01:40:48 CEST 2004


> A pity that cpython doesn't implement sendfile as an native C method 
> that is layered on top of a native OS implementation if available, or a 
> generic C implementation if not. The current lack of the call means that 
> people tend to implement their own sendfile in pure python, meaning that 
> they end up acquiring and releasing the GIL between every chunk sent.

Is this something that should be added to the standard library
(probably as part of the socket module)?

Bill


More information about the Web-SIG mailing list