AttributeError: 'module' object has no attribute 'fork'
Roy Smith
roy at panix.com
Thu Aug 7 07:49:05 EDT 2014
In article <mailman.12720.1407394838.18130.python-list at python.org>,
Peter Otten <__peter__ at 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.
More information about the Python-list
mailing list