fcntl in windows

Alex Martelli aleax at aleax.it
Wed Apr 30 12:30:31 EDT 2003


Jp Calderone wrote:

> On Wed, Apr 30, 2003 at 03:26:29PM +0000, Afanasiy wrote:
>> Is there an fcntl in Windows? A stub, a wrapper, etc?
> 
>   http://python.org/doc/lib/module-fcntl.html

The page you indicate says "Availability: Unix", and indeed
trying:

import fcntl

on Windows gives an ImportError: No module named fcntl


As far as I know, nobody's written a fcntl-emulator for
Windows -- the functionality is clearly available (a bit
in msvcrt, all of it in win32all, or maybe also through
ctypes) but the interfaces are, alas, quite different.


Alex





More information about the Python-list mailing list