shared file access in python

Andrew MacIntyre andymac at bullseye.apana.org.au
Sat Jun 19 17:55:26 EDT 2004


On Sat, 18 Jun 2004, Lev Elblert wrote:

> Does Python allow to open files in shared mode like fsopen or _open
> do? If not how to make it happen?

Assuming you're on a Win32 platform, I think the msvcrt module has what
you're looking for.  The standard file object supports only the standard C
library file stream API.

--
Andrew I MacIntyre                     "These thoughts are mine alone..."
E-mail: andymac at bullseye.apana.org.au  (pref) | Snail: PO Box 370
        andymac at pcug.org.au             (alt) |        Belconnen  ACT  2616
Web:    http://www.andymac.org/               |        Australia




More information about the Python-list mailing list