the FCNTL module is deprecated

Rob McCrea robmccrea at spaamadelphiaspremoveam.net
Mon Sep 13 10:42:29 EDT 2004


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:

"""start testhelp.py"""

class Object:
     "class Object is an empty testing class"
     def __init__(self):
         pass

help(Object)

"""end testhelp.py"""

"""start output"""

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 creating docstrings and/or using help()?

Thanks,
Rob




More information about the Python-list mailing list