@classdef.method("read")
    def method_read(self, space, args_w):
        self.ensure_open(space)
        try:
            filename = readdir(self.dirp)
        except __HOLE__ as e:
            raise error_for_oserror(space, e)
        if filename is None:
            return space.w_nil
        else:
            return space.newstr_fromstr(filename)
dataset/ETHPy150Open topazproject/topaz/topaz/objects/dirobject.py/W_DirObject.method_read