class documentation

class PagerBuffer(BinaryIO):

Constructor: PagerBuffer(pager)

View In Hierarchy

Binary buffer wrapper for Pager to mimic sys.stdout.buffer.

Method __enter__ Enter context manager.
Method __exit__ Exit context manager.
Method __init__ Initialize PagerBuffer.
Method __iter__ Return iterator (not supported).
Method __next__ Return next line (not supported).
Method close Close the pager.
Method fileno Return the file descriptor (not supported).
Method flush Flush the pager.
Method isatty Return whether the buffer is a TTY.
Method read Read from the buffer (not supported).
Method read1 Read from the buffer (not supported).
Method readable Return whether the buffer is readable (it's not).
Method readinto Read into buffer (not supported).
Method readinto1 Read into buffer (not supported).
Method readline Read a line from the buffer (not supported).
Method readlines Read lines from the buffer (not supported).
Method seek Seek in the buffer (not supported).
Method seekable Return whether the buffer is seekable (it's not).
Method tell Return the current position (not supported).
Method truncate Truncate the buffer (not supported).
Method writable Return whether the buffer is writable.
Method write Write bytes to pager.
Method writelines Write multiple lines to pager.
Instance Variable pager Undocumented
Property closed Return whether the buffer is closed.
Property mode Return the mode.
Property name Return the name.
def __enter__(self) -> PagerBuffer:

Enter context manager.

def __exit__(self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None):

Exit context manager.

def __init__(self, pager: Pager):

Initialize PagerBuffer.

Parameters
pager:PagerPager instance to wrap
def __iter__(self) -> PagerBuffer:

Return iterator (not supported).

def __next__(self) -> bytes:

Return next line (not supported).

def close(self):

Close the pager.

def fileno(self) -> int:

Return the file descriptor (not supported).

def flush(self):

Flush the pager.

def isatty(self) -> bool:

Return whether the buffer is a TTY.

def read(self, size: int = -1) -> bytes:

Read from the buffer (not supported).

def read1(self, size: int = -1) -> bytes:

Read from the buffer (not supported).

def readable(self) -> bool:

Return whether the buffer is readable (it's not).

def readinto(self, b: bytearray) -> int:

Read into buffer (not supported).

def readinto1(self, b: bytearray) -> int:

Read into buffer (not supported).

def readline(self, size: int = -1) -> bytes:

Read a line from the buffer (not supported).

def readlines(self, hint: int = -1) -> list[bytes]:

Read lines from the buffer (not supported).

def seek(self, offset: int, whence: int = 0) -> int:

Seek in the buffer (not supported).

def seekable(self) -> bool:

Return whether the buffer is seekable (it's not).

def tell(self) -> int:

Return the current position (not supported).

def truncate(self, size: int | None = None) -> int:

Truncate the buffer (not supported).

def writable(self) -> bool:

Return whether the buffer is writable.

def write(self, data: bytes | bytearray | memoryview) -> int:

Write bytes to pager.

def writelines(self, lines: Iterable[bytes | bytearray | memoryview]):

Write multiple lines to pager.

pager =

Undocumented

closed: bool =

Return whether the buffer is closed.

mode: str =

Return the mode.

name: str =

Return the name.