file_object - Stubs for read-only and modifiable file-like objects

Helper classes for the implementation of read-only and writable file objects that forward calls to an actual file object variable.

class ReadOnlyFileObject(file_=None)[source]

Implement the non modifying portion of the file object protocol by delegating to another file object.

Subclass and override as needed.

__init__(file_=None)[source]

Set the delegate file object.

setFile(file_)[source]

Set the delegate file object.

class WritableFileObject(file_=None)[source]

Implement the file object protocol by delegating to another file object.

Subclass and override as needed.

__init__(file_=None)[source]

Set the delegate file object.