python 2.3.1 issues DeprecationWarning for FCNTL when importing tempfile

Pierre Rouleau prouleau at impathnetworks.com
Thu Oct 2 18:16:05 EDT 2003


Hi all!

I am using Python 2.3.1 on Win32 (NT, 2000).

Whenever a file imports the standard tempfile module, Python 2.3.1 
issues the following warning:

C:\Python23\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is 
Deprecated; please use fcntl DeprecationWarning).

A quick look into tempfile.py show that it does import fcnt.  Python 2.3 
tempfile documentation says that it was changed.  Was the use of fcntl() 
forgotten?  Is this a bug?

Thanks for your time.

Pierre





More information about the Python-list mailing list