The new major version number doesn't indicate any deliberate API incompatibility.
We have endeavoured to avoid breaking existing APIs. However, pexpect is under
new maintenance after a long dormancy, so some caution is warranted.
* A new :ref:`unicode API <unicode>` was introduced.
* Python 3 is now supported, using a single codebase.
* Pexpect now requires at least Python 2.6 or 3.2.
* The modules other than pexpect, such as :mod:`pexpect.fdpexpect` and
:mod:`pexpect.pxssh`, were moved into the pexpect package. For now, wrapper
modules are installed to the old locations for backwards compatibility (e.g.
``import pxssh`` will still work), but these will be removed at some point in
the future.
* Ignoring ``SIGHUP`` is now optional - thanks to Kimmo Parviainen-Jalanko for
the patch.
Upstream changelog:
Fix a bug regarding making the pty the controlling terminal when the
process spawning it is not, actually, a terminal (such as from cron)
(3.0 is out, but this update is far more clearly safe.)
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
- assume that Python 2.4 and 2.5 are compatible and allow checking for
fallout.
- remove PYTHON_VERSIONS_COMPATIBLE that are obsoleted by the 2.3+
default. Modify the others to deal with the removals.
- Supports DESTDIR
- Accept Python 2.5
No ChangeLog, but it adds three new modules:
SCREEN: This implements a virtual screen
ANSI: This implements an ANSI terminal emulator as a subclass of screen
FSM: This module implements a Finite State Machine (FSM)
additional modules:
- pxssh
Pexpect SSH is an extension of 'pexpect.spawn' that specializes in SSH.
- fdpexpect
fdpexpect extension of 'pexpect.spawn' that uses an open file descriptor.
Update approved by Min Sik Kim.
Pexpect makes Python a better glue for controlling child applications.
Pexpect is a pure Python module for spawning child applications;
controlling them; and responding to expected patterns in their
output. Pexpect works like Don Libes' Expect. Pexpect allows your
script to spawn a child application and control it as if a human were
typing commands.
Pexpect can be used for automating interactive applications such as
ssh, ftp, passwd, telnet, etc. It can be used to a automate setup
scripts for duplicating software package installations on different
servers. It can be used for automated software testing. Pexpect is
in the spirit of Don Libes' Expect, but Pexpect is pure Python. The
Pexpect interface was designed to be easy to use.