You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The help documentation for the popen2.Popen3 class includes the
following information:
class Popen3
| Class representing a child process. Normally instances are created
| by the factory functions popen2() and popen3().
This information is misleading because the function popen2.popen3
actually returns a tuple of file objects (child_stdout, child_stdin,
child_stderr), not an instance of class Popen3. Additionally, some of
the properties of class Popen3 are monkey-patched into the instance when
it is created and so do not appear in a dir(popen2.Popen3) call on the
class itself. This means that some automatic documentation generators
seem to fail to list these properties of the runtime Popen3 instance, as
they are not apparent in the class definition.
I suggest adding a note in the documentation of popen2.Popen3 to refer
users to the manual page http://docs.python.org/lib/popen3-objects.html.
An example of usage that takes into account the monkey-patched
properties would also be helpful.
I clarified the docstring in r59771. I won't extend it, however, since
most types don't announce their attributes in the docstring. For that
you should always consult the code or the official docs.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: