Very hard to find right function... If I open file fname="c:\\temp\\foobar.txt" file_foobar = file(fname) file_foobar.fileno() returns 3 becausee of unix like library used in windows python....
If I'd like to get to known what windows handle it has hfile=win32file.CreateFile( ff,win32con.GENERIC_READ| win32con.GENERIC_WRITE,win32con.FILE_SHARE_READ| win32con.FILE_SHARE_WRITE,None, win32con.OPEN_ALWAYS,win32con.FILE_ATTRIBUTE_NORMAL , 0 ) hfile.handle returns 88 Are there any function to get windows handle of file which is already opened with built-in file-function. -Eino -- http://mail.python.org/mailman/listinfo/python-list