Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75843

Re: AttributeError: 'module' object has no attribute 'fork'

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!roy
From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: AttributeError: 'module' object has no attribute 'fork'
Date Thu, 07 Aug 2014 07:49:05 -0400
Organization PANIX Public Access Internet and UNIX, NYC
Lines 21
Message-ID <roy-496ACC.07490507082014@news.panix.com> (permalink)
References <7bd83ac7-17e6-49c2-b5c7-3236c900d005@googlegroups.com> <mailman.12720.1407394838.18130.python-list@python.org>
NNTP-Posting-Host localhost
X-Trace reader1.panix.com 1407412146 10865 127.0.0.1 (7 Aug 2014 11:49:06 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Thu, 7 Aug 2014 11:49:06 +0000 (UTC)
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Xref csiph.com comp.lang.python:75843

Show key headers only | View raw


In article <mailman.12720.1407394838.18130.python-list@python.org>,
 Peter Otten <__peter__@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 only available on unix")

or perhaps even, as Peter suggests:

NotImplementedError("You are using the wrong operating system")

either of those would be better than AttributeError.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

AttributeError: 'module' object has no attribute 'fork' Satish ML <satishmlwizpro@gmail.com> - 2014-08-06 23:44 -0700
  Re: AttributeError: 'module' object has no attribute 'fork' Peter Otten <__peter__@web.de> - 2014-08-07 09:00 +0200
    Re: AttributeError: 'module' object has no attribute 'fork' Roy Smith <roy@panix.com> - 2014-08-07 07:49 -0400
      Re: AttributeError: 'module' object has no attribute 'fork' Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-08 02:56 +1000
        Re: AttributeError: 'module' object has no attribute 'fork' Rustom Mody <rustompmody@gmail.com> - 2014-08-07 22:19 -0700
          Re: AttributeError: 'module' object has no attribute 'fork' Rustom Mody <rustompmody@gmail.com> - 2014-08-07 22:35 -0700
          Re: AttributeError: 'module' object has no attribute 'fork' Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-08 15:48 +1000
            Re: AttributeError: 'module' object has no attribute 'fork' Rustom Mody <rustompmody@gmail.com> - 2014-08-08 00:17 -0700
              Re: AttributeError: 'module' object has no attribute 'fork' Chris Angelico <rosuav@gmail.com> - 2014-08-08 17:32 +1000

csiph-web