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

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
serializes and encodes to base64 format supplied value .