@classdef.method("chmod", mode="int")
    def method_chmod(self, space, mode):
        try:
            fchmod(self.fd, mode)
        except __HOLE__ as e:
            raise error_for_oserror(space, e)
        return space.newint(0)
dataset/ETHPy150Open topazproject/topaz/topaz/objects/fileobject.py/W_FileObject.method_chmod