467,146 Members | 1,296 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

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

fcntl and FCNTL

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 the second one is usable.

Unfortunately, there is no fcntl in my python installation (Python
2.3.3, I got it from python site for Windows). There is FCNTL.py which
is just a warning message and some imports.

Am I missing some files here. How could I have access to fcntl module.

Any help?

Thank you in advance.
Regards;
Jul 18 '05 #1
  • viewed: 17501
Share:
4 Replies
Omid Fatemi wrote:
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 the second one is usable.

Unfortunately, there is no fcntl in my python installation (Python
2.3.3, I got it from python site for Windows). There is FCNTL.py which
is just a warning message and some imports.

Am I missing some files here. How could I have access to fcntl module.


From the docs in http://docs.python.org/lib/module-fcntl.html

"""Availability: Unix."""

I don't know if there's an alternative. Presumably the archives
for the list would answer this clearly, since as you say others
have asked the question before.

-Peter
Jul 18 '05 #2
Dear Peter;
thank you for your response.
Does this mean that in Windows I can't use fcntl module.
If yes, what functions do you suggest to use instead of fcntl funtions.

I could see the funtions in posixfile are using fcntl functions.
Do you have any alternative for posixfile module?

Regards;

Peter Hansen <pe***@engcorp.com> wrote in message news:<w4********************@powergate.ca>...
Omid Fatemi wrote:
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 the second one is usable.

Unfortunately, there is no fcntl in my python installation (Python
2.3.3, I got it from python site for Windows). There is FCNTL.py which
is just a warning message and some imports.

Am I missing some files here. How could I have access to fcntl module.


From the docs in http://docs.python.org/lib/module-fcntl.html

"""Availability: Unix."""

I don't know if there's an alternative. Presumably the archives
for the list would answer this clearly, since as you say others
have asked the question before.

-Peter

Jul 18 '05 #3
> Does this mean that in Windows I can't use fcntl module.
If yes, what functions do you suggest to use instead of fcntl funtions.
I could see the funtions in posixfile are using fcntl functions.
Do you have any alternative for posixfile module?


I don't use windows, so I can't help here - but what might give the
windows-gurus out there a hint how to help you would be to say what you
actually want to achieve - then they might know how to do that with
windows.
--
Regards,

Diez B. Roggisch
Jul 18 '05 #4
Omid Fatemi wrote:
Dear Peter;
thank you for your response.
Does this mean that in Windows I can't use fcntl module.
If yes, what functions do you suggest to use instead of fcntl funtions.
What are you using for documentation? In my "Global Module Index" it
says (in the module list):
....
fcntl (Unix)
....
posixfile (Unix)
.... I could see the funtions in posixfile are using fcntl functions.
Do you have any alternative for posixfile module?

I think you can take this as an indication without reading the source
that the Python modules are tied pretty closely to the Unix
functionality they provide, and therefore won;t be available on Windows
any time soon.

regards
Steve
--
http://www.holdenweb.com
http://pydish.holdenweb.com
Holden Web LLC +1 800 494 3119
Jul 18 '05 #5

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
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@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.