(self)
return f
Open a new locked file, or return None if it already exists.
        Do not hide the file or Python can't close it.
Open a new locked file, or return None if it already exists.
        Do not hide the file or Python can't close it.
Open a new locked file or return None if it already exists . Do not hide the file or Python can t close it .
def create(self):
        """Open a new locked file, or return None if it already exists.
        Do not hide the file or Python can't close it.
        """
        if not file_exists(self._name) or remove_file(self._name):
            f = open(self._name, 'w')
        else:
            f = None
        return f
def create ( self ) : if not file_exists ( self . _name ) or remove_file ( self . _name ) : f = open ( self . _name , 'w' ) else : f = None return f