os
>>>> os.fork
>
> Traceback (most recent call last):
> File "", line 1, in
> os.fork
> AttributeError: 'module' object has no attribute 'fork'
>
>
> Linux:
>
> $ python
> Python 2.7.8 (default, Jul 4 2014, 13:08:34)
> [
n platforms where fork doesn't
> exist. So testing that os.fork exists is not sufficient to tell whether or
> not you can actually fork.
Windows:
Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on
win32
Type "copyright", "credits" or
Rustom Mody wrote:
> On Thursday, August 7, 2014 10:26:56 PM UTC+5:30, Steven D'Aprano wrote:
>> Roy Smith wrote:
>
>> > Peter Otten wrote:
>> >> os.fork()
>> >> Fork a child process.
>> >> ...
>> >> Availability: Unix.
>> >> """
>> >> You are using the wrong operating system ;)
>> > To be hone
On Friday, August 8, 2014 10:49:27 AM UTC+5:30, Rustom Mody wrote:
> On Thursday, August 7, 2014 10:26:56 PM UTC+5:30, Steven D'Aprano wrote:
> > Roy Smith wrote:
> > > Peter Otten wrote:
> > >> os.fork()
> > >> Fork a child process.
> > >> ...
> > >> Availability: Unix.
> > >> """
> > >> You ar
On Thursday, August 7, 2014 10:26:56 PM UTC+5:30, Steven D'Aprano wrote:
> Roy Smith wrote:
> > Peter Otten wrote:
> >> os.fork()
> >> Fork a child process.
> >> ...
> >> Availability: Unix.
> >> """
> >> You are using the wrong operating system ;)
> > To be honest, this could be considered a bu
Roy Smith wrote:
> In article ,
> Peter Otten <__pete...@web.de> wrote:
>
>> os.fork()
>> Fork a child process.
>> ...
>> Availability: Unix.
>> """
>>
>> You are using the wrong operating system ;)
>
> To be honest, this could be considered a buglet in the os module. It
> really should raise
In article ,
Peter Otten <__pete...@web.de> wrote:
> os.fork()
> Fork a child process.
> ...
> Availability: Unix.
> """
>
> You are using the wrong operating system ;)
To be honest, this could be considered a buglet in the os module. It
really should raise:
NotImplementedError("fork() is on
t; parent()
>
> Output:
> Traceback (most recent call last):
> File "C:/Python34/pipe1.py", line 17, in
> parent()
> File "C:/Python34/pipe1.py", line 11, in parent
> if os.fork() == 0:
> AttributeError: 'module' object has
;C:/Python34/pipe1.py", line 11, in parent
if os.fork() == 0:
AttributeError: 'module' object has no attribute 'fork'
Why does this error appear? Module os provides fork(). How to solve this
problem? Kindly help.
--
https://mail.python.org/mailman/listinfo/python-list