[issue15818] multiprocessing documentation of Process.exitcode

New submission from Josh Kupershmidt: [I tried to send this as an email to docs@python.org yesterday, but it seems to have gotten eaten, as I don't see the message in the archives.] Hi all, The documentation for the multiprocessing module claims: | Note that the start(), join(), is_alive() and exit_code methods | should only be called by the process that created the process object. Two problems with this description: 1. "exit_code" should be spelled "exitcode" 2. exitcode is an attribute of the Process class, not a method as claimed, since the underlying method is decorated with @property Also, aside from the above documentation issues, if it is true that it's not safe to query the exitcode from a separate process, should the exitcode property method include a check like so: assert self._parent_pid == os.getpid(), 'can only test a child process' since start(), join(), and is_alive() all perform this check? ---------- assignee: docs@python components: Documentation messages: 169428 nosy: docs@python, schmiddy priority: normal severity: normal status: open title: multiprocessing documentation of Process.exitcode versions: Python 2.7, Python 3.3 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15818> _______________________________________

Changes by Richard Oudkerk <shibturn@gmail.com>: ---------- nosy: +sbt _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15818> _______________________________________

Roundup Robot added the comment: New changeset f50bbae95bc8 by Richard Oudkerk in branch '2.7': Issue #15818: Typo in docs. http://hg.python.org/cpython/rev/f50bbae95bc8 New changeset 3a5e2f1dce5c by Richard Oudkerk in branch '3.3': Issue #15818: Typo in docs. http://hg.python.org/cpython/rev/3a5e2f1dce5c New changeset 4f08d4647f75 by Richard Oudkerk in branch 'default': Issue #15818: Merge. http://hg.python.org/cpython/rev/4f08d4647f75 ---------- nosy: +python-dev _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15818> _______________________________________

Changes by Richard Oudkerk <shibturn@gmail.com>: ---------- resolution: -> fixed stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue15818> _______________________________________
participants (3)
-
Josh Kupershmidt
-
Richard Oudkerk
-
Roundup Robot