4. ctb -- Interface to the Communications Tool Box

Availability: Macintosh.

This module provides a partial interface to the Macintosh Communications Toolbox. Currently, only Connection Manager tools are supported. It may not be available in all Mac Python versions.

The exception raised on errors.

Flags for the channel argument of the Read() and Write() methods.

End-of-message flag for Read() and Write().

Values returned by Choose().

Bits in the status as returned by Status().

available ()
Return 1 if the Communication Toolbox is available, zero otherwise.

CMNew (name, sizes)
Create a connection object using the connection tool named name. sizes is a 6-tuple given buffer sizes for data in, data out, control in, control out, attention in and attention out. Alternatively, passing None for sizes will result in default buffer sizes.

Send comments on this document to python-docs@python.org.