def open ( self , flag = "c" ) : return shelve . open ( os . path . join ( gettempdir ( ) , self . index ) , flag = flag , protocol = 2 )
python shelve change extension
Open handle
def open(self, flag="c"):
        """Open handle

        set protocol=2 to fix python3

        .. versionadded:: 1.3.1
        """
        return shelve.open(os.path.join(gettempdir(), self.index), flag=flag, protocol=2)