blob: 8321454ad39d1bebf940ad00a9188c51819a0e28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
fdpexpect - use pexpect with a file descriptor
==============================================
.. automodule:: pexpect.fdpexpect
fdspawn class
-------------
.. autoclass:: fdspawn
:show-inheritance:
.. automethod:: __init__
.. automethod:: isalive
.. automethod:: close
.. note::
:class:`fdspawn` inherits all of the methods of :class:`~pexpect.spawn`,
but not all of them can be used, especially if the file descriptor is not
a terminal. Some methods may do nothing (e.g. :meth:`~fdspawn.kill`), while
others will raise an exception (e.g. :meth:`~fdspawn.terminate`).
This behaviour might be made more consistent in the future, so try to
avoid relying on it.
|