469,327 Members | 1,219 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,327 developers. It's quick & easy.

the FCNTL module is deprecated

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

Jul 18 '05 #1
3 2095
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()?


Thanks,
Rob
Jul 18 '05 #2
Rob McCrea <ro*******@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
<le***@telus.net>
Jul 18 '05 #3
Lenard Lindstrom wrote:
Rob McCrea <ro*******@spaamadelphiaspremoveam.net> writes:
I wrote:
Hi all,


"""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 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.

Lenard Lindstrom
<le***@telus.net>


Thanks very much, Lenard, It's fixed.

Rob
Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Meyer, Tony | last post: by
11 posts views Thread by Chris Green | last post: by
4 posts views Thread by Omid Fatemi | last post: by
5 posts views Thread by marcello | last post: by
reply views Thread by Mitko Haralanov | last post: by
9 posts views Thread by mhearne808[insert-at-sign-here]gmail[insert-dot-he | last post: by
2 posts views Thread by xucs007 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by listenups61195 | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.