473,473 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2259
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Meyer, Tony | last post by:
(I did try to google for an answer to this, but couldn't find anything, although plenty of instances of the warning). I don't understand this warning: >>> import fcntl C:\Program...
6
by: Pierre Rouleau | last post by:
Hi all! I am using Python 2.3.1 on Win32 (NT, 2000). Whenever a file imports the standard tempfile module, Python 2.3.1 issues the following warning: C:\Python23\lib\fcntl.py:7:...
0
by: Ryan Grow | last post by:
Hi, I'm trying to use fcntl to set an existing file descriptor to be nonblocking. This contrived example exhibits the behavior of python that is preventing me from doing this: import os,...
11
by: Chris Green | last post by:
Hey folks, Is there anyway for a signal handler in python to get the information from a 3 argument signal handler rather than just the signal number and stack frame? I've got an application...
4
by: Omid Fatemi | last post by:
I followed discussion in the group about this problem: ImportError: No module named fcntl I found out there are two modules: FCNTL fcntl the first one is obsolete and shouldn't be used. But...
5
by: marcello | last post by:
Hello I need to do this: 1 opening a file for writing/appending 2 to lock the file as for writing (i mean: the program that lock can keep writing, all others programs can't ) 3 wtite and...
0
by: Mitko Haralanov | last post by:
I am trying to use the advisory locking with fcntl over NFS (thus, me choosing fcntl instead of flock and friends). I have the following code: lockdata = struct.pack ("hhllhh", fcntl.F_RDLCK, 0,...
9
by: mhearne808[insert-at-sign-here]gmail[insert-dot-he | last post by:
I'm having a number of problems with the fcntl module. First off, my system info: Mac OS X Darwin igskcicglthearn.cr.usgs.gov 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007;...
2
by: xucs007 | last post by:
I ran following 2 programs (lock1, lock2) at almost same time, to write either "123456", or "222" to file "aaa" at the same time. But I often just got "222456" in "aaa" . Is this a bug of python...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.