the FCNTL module is deprecated

Lenard Lindstrom len-1 at telus.net
Mon Sep 13 14:47:27 EDT 2004


Rob McCrea <robmccrea at spaamadelphiaspremoveam.net> writes:

> I wrote:
> 
> > Hi all,
> > On windows98SE, running Python 2.3.4 (#53, May 25 2004, 21:17:02)
> > [MSC v.1200 32 bit (Intel)] on win32, the built-in help() function
> > gives me
> > a deprecation warning when used on my docstrings.
> > just help() start the interactive help without error.
> > Heres some minimalistic code to demonstrate this warning:
> 
> My code wasn't the minimum, i guess its not my docstrings:
> 
> """start testhelp.py"""
> 
> class Object:
>      def __init__(self):
>          pass
> 
> help(Object)
> 
> """end testhelp.py"""
> 
>   > C:\PYTHON23\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is
> > deprecated;
> > please use fcntl
> >   DeprecationWarning)
> > Help on class Object in module __main__:
> > class Object
> >  |  class Object is an empty testing class
> >  |
> >  |  Methods defined here:
> >  |
> >  |  __init__(self)
> > """end output"""
> > I'm not particularly concerned with it, just being a warning which I
> > might be able to suppress with python.exe parameters, but if anyone
> > knows how to fix it, I'd like to fix it.  I also had the same
> > warning in 2.3.3, which lead me to upgrading which searching for a
> > solution.  I tried deleting all .pyc from my python\Lib directory,
> > to no avail.  I am new, am I missing a step in using help()?
> 
I am running Windows 98 and do not get the deprecation warning. After
some searching I chased the problem down to the PYTHONCASEOK environment
variable, which is not defined on my system.

C:\prg\Python23>python -V
Python 2.3.3

C:\prg\Python23>python helptest.py

Help on class Object in module __main__:

class Object
 |  Methods defined here:
 |
 |  __init__(self)


C:\prg\Python23>type helptest.py
"""start testhelp.py"""

class Object:
     def __init__(self):
         pass

help(Object)

"""end testhelp.py"""

C:\prg\Python23>set PYTHONCASEOK=1

C:\prg\Python23>python helptest.py
C:\PRG\PYTHON23\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is deprecat
ed; please use fcntl
  DeprecationWarning)

Help on class Object in module __main__:

class Object
 |  Methods defined here:
 |
 |  __init__(self)

Lenard Lindstrom
<len-l at telus.net>



More information about the Python-list mailing list