def num_fds(self): """Return the number of file descriptors opened by this process.""" return cext.proc_num_fds(self.pid)