(value)
return retVal
Serializes (with pickle) and encodes to Base64 format supplied (binary) value

    >>> base64pickle('foobar')
    'gAJVBmZvb2JhcnEALg=='
Serializes (with pickle) and encodes to Base64 format supplied (binary) value
Serializes ( with pickle ) and encodes to Base64 format supplied ( binary ) value
def base64pickle(value):
    """
    Serializes (with pickle) and encodes to Base64 format supplied (binary) value

    >>> base64pickle('foobar')
    'gAJVBmZvb2JhcnEALg=='
    """

    retVal = None

    try:
        retVal = base64encode(pickle.dumps(value, pickle.HIGHEST_PROTOCOL))
    except:
        warnMsg = "problem occurred while serializing "
        warnMsg += "instance of a type '%s'" % type(value)
        singleTimeWarnMessage(warnMsg)

        try:
            retVal = base64encode(pickle.dumps(value))
        except:
            retVal = base64encode(pickle.dumps(str(value), pickle.HIGHEST_PROTOCOL))

    return retVal
def base64pickle ( value ) : retVal = None try : retVal = base64encode ( pickle . dumps ( value , pickle . HIGHEST_PROTOCOL ) ) except : warnMsg = "problem occurred while serializing " warnMsg += "instance of a type '%s'" % type ( value ) singleTimeWarnMessage ( warnMsg ) try : retVal = base64encode ( pickle . dumps ( value ) ) except : retVal = base64encode ( pickle . dumps ( str ( value ) , pickle . HIGHEST_PROTOCOL ) ) return retVal