6.5.2.2. Stream methods

MethodDescription
__init__(self, fd, name) Constructor to initialize a stream.

Table 6.5. Method summary

Method __init__(self, fd, name)

This constructor initializes a Stream instance setting its attributes according to arguments.

Arguments of __init__
fd (integer)
Default: n/a
The file descriptor associated to the stream.

name (string)
Default: n/a
The name of the stream.