FCNTL module deprecation warning

Tony Meyer ta-meyer at ihug.co.nz
Tue Jul 15 19:40:14 EDT 2003


[Tony Meyer]
> My question is then why the 2.3b2 Windows binary bothers installing 
> the FCNTL.py file.
[Tim Peters]
> Because it would be enormously more bother to special-case 
> it.

If I could get the behaviour that you get, I wouldn't care if it installed
it...

[Tony Meyer]
> Shouldn't the correct behaviour be to raise an ImportError if a 
> windows user tries to import fcntl or FCNTL?
[Tim Peters]
> It does for me:
> 
> >>> import fcntl
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> ImportError: No module named fcntl
> >>> import FCNTL
> C:\CODE\PYTHON\lib\FCNTL.py:7: DeprecationWarning: the FCNTL 
> module is deprecated; please use fcntl
>   DeprecationWarning)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "C:\CODE\PYTHON\lib\FCNTL.py", line 11, in ?
>     from fcntl import *
> ImportError: No module named fcntl
> >>>
> 
> I get that under Python 2.2.3 and 2.3b2.

Strange.  I get the warning on 2.2.3 and 2.3b2, except in 2.3b2 IDLE, which
successfully imports fcntl (odd).  (long cut'n'pastes below).

Do you have the PYTHONCASEOK envar set?  (This doesn't seem to make any
difference to me, but from the explanation I didn't think it would).

I presume this means something is screwy with my Python setup?  (or yours,
but mine seems the more likely :).  Any suggestions about what I might be
able to change to get the import error that you do?

=Tony Meyer

Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> import fcntl
c:\progra~1\python22\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is
deprecated; please use fcntl
  DeprecationWarning)
>>> import FCNTL
c:\progra~1\python22\lib\FCNTL.py:7: DeprecationWarning: the FCNTL module is
deprecated; please use fcntl
  DeprecationWarning)
>>> 

Python 2.3b2 (#43, Jun 29 2003, 16:43:04) [MSC v.1200 32 bit (Intel)] on
win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> import fcntl
>>> import FCNTL
c:\progra~1\python23\lib\FCNTL.py:7: DeprecationWarning: the FCNTL module is
deprecated; please use fcntl
  DeprecationWarning)
>>> 

Python 2.3b2 (#43, Jun 29 2003, 16:43:04) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import fcntl
c:\progra~1\python23\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is
dep
recated; please use fcntl
  DeprecationWarning)
>>> import FCNTL
c:\progra~1\python23\lib\FCNTL.py:7: DeprecationWarning: the FCNTL module is
dep
recated; please use fcntl
  DeprecationWarning)
>>>

Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import fcntl
c:\progra~1\python22\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is
dep
recated; please use fcntl
  DeprecationWarning)
>>> import FCNTL
c:\progra~1\python22\lib\FCNTL.py:7: DeprecationWarning: the FCNTL module is
dep
recated; please use fcntl
  DeprecationWarning)
>>>

PythonWin 2.3b2 (#43, Jun 29 2003, 16:43:04) [MSC v.1200 32 bit (Intel)] on
win32.
Portions Copyright 1994-2001 Mark Hammond (mhammond at skippinet.com.au) - see
'Help/About PythonWin' for further copyright information.
>>> import fcntl
C:\Program Files\Python23\lib\fcntl.py:7: DeprecationWarning: the FCNTL
module is deprecated; please use fcntl
  DeprecationWarning)
>>> import FCNTL
C:\Program Files\Python23\lib\FCNTL.py:7: DeprecationWarning: the FCNTL
module is deprecated; please use fcntl
  DeprecationWarning)
>>> 

PythonWin 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond (mhammond at skippinet.com.au) - see
'Help/About PythonWin' for further copyright information.
>>> import fcntl
C:\Program Files\Python22\lib\fcntl.py:7: DeprecationWarning: the FCNTL
module is deprecated; please use fcntl
  DeprecationWarning)
>>> import FCNTL
C:\Program Files\Python22\lib\FCNTL.py:7: DeprecationWarning: the FCNTL
module is deprecated; please use fcntl
  DeprecationWarning)
>>> 






More information about the Python-list mailing list