def di_is_writable(interp, this): if this.w_dir_res.index < this.w_dir_res.no_of_items: item = _di_pathname(this) else: item = this.path return _is_writable(interp.space, item)
def is_writable(interp, this): return _is_writable(interp.space, this.file_name)