class documentation

class _FDHolder: (source)

View In Hierarchy

A wrapper around a FD that will remember if it has been closed or not.

Method __del__ If self._fd is unclosed, raise a warning.
Method __enter__ Undocumented
Method __exit__ Undocumented
Method __init__ Undocumented
Method close Close the FD. If it's already been closed, do nothing.
Method fileno Return the fileno of this FD.
Instance Variable _fd Undocumented
def __del__(self): (source)

If self._fd is unclosed, raise a warning.

def __enter__(self): (source)

Undocumented

def __exit__(self, exc_type, exc_value, traceback): (source)

Undocumented

def __init__(self, fd): (source)

Undocumented

def close(self): (source)

Close the FD. If it's already been closed, do nothing.

def fileno(self): (source)

Return the fileno of this FD.

Undocumented