Das reader Modul
The IO.reader Module provides Reader Interfaces for the relevant input operations. Implementations are provided for files as well as std streams.
- class gropro.gio.reader.IReader[Quellcode]
Bases:
ABC- abstract read() list[str][Quellcode]
- class gropro.gio.reader.StreamReader(input: TextIO)[Quellcode]
Bases:
IReaderReader implementation for a text stream object, provided at instantiation
- read() list[str][Quellcode]
Executes the actual read operation, if this is called and nothing is written to stdin, the programm will halt until interrupted by the user or OS.
- class gropro.gio.reader.FileReader(input: Path)[Quellcode]
Bases:
IReaderReader implementation for a file-like object, provided at instantiation
- read() list[str][Quellcode]
Executes the actual read operation, will fail for file-not existing, etc