Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RE: FCNTL module deprecation warning

Reply
Thread Tools

RE: FCNTL module deprecation warning

 
 
Tony Meyer
Guest
Posts: n/a
 
      07-15-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:0 [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:0 [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 ((E-Mail Removed)) - 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:0 [MSC 32 bit (Intel)] on win32.
Portions Copyright 1994-2001 Mark Hammond ((E-Mail Removed)) - 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)
>>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3.1 -> 3.2: base64 lost deprecation warning Ethan Furman Python 0 02-28-2011 08:51 PM
Invalid argument with fcntl.fcntl Mitko Haralanov Python 0 06-06-2007 06:45 PM
warning: [deprecation] in java.util.Date(java.lang.String) has been deprecated BoBi Java 3 12-15-2006 04:51 AM
fcntl and FCNTL Omid Fatemi Python 4 11-01-2004 12:34 PM
FCNTL module deprecation warning Meyer, Tony Python 2 07-15-2003 02:25 PM



Advertisments