Sophie

Sophie

distrib > Mageia > 4 > i586 > media > core-release > by-pkgid > b532c7e40689f91bff4aff220da23696 > files > 46

python-pexpect-3.0-1.mga4.noarch.rpm

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.