Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > fcntl and FCNTL

Reply
Thread Tools

fcntl and FCNTL

 
 
Omid Fatemi
Guest
Posts: n/a
 
      10-30-2004
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;
 
Reply With Quote
 
 
 
 
Peter Hansen
Guest
Posts: n/a
 
      10-30-2004
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
 
Reply With Quote
 
 
 
 
Omid Fatemi
Guest
Posts: n/a
 
      10-31-2004
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 <> wrote in message news:<w4mdncnRG8DIDh7cRVn->...
> 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

 
Reply With Quote
 
Diez B. Roggisch
Guest
Posts: n/a
 
      11-01-2004
> 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
 
Reply With Quote
 
Steve Holden
Guest
Posts: n/a
 
      11-01-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: fcntl and siginfo_t in python ma Python 0 05-04-2009 04:03 PM
distinct fcntl flags for stdin and stdout mbuna Python 0 11-27-2008 10:03 AM
Invalid argument with fcntl.fcntl Mitko Haralanov Python 0 06-06-2007 06:45 PM
fcntl() and packing structs with unions. tyler Python 0 09-04-2006 08:29 AM
Linux, fcntl, F_SETLEASE and signals Chris Green Python 11 07-26-2004 07:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57