(obj, protocol=None)
return f.getvalue()
Return pickled (or marshalled) string for obj.
Return pickled (or marshalled) string for obj.
Return pickled ( or marshalled ) string for obj .
def dumps(obj, protocol=None):
    "Return pickled (or marshalled) string for obj."
    # IDLE passes 'None' to select pickle.DEFAULT_PROTOCOL.
    f = io.BytesIO()
    p = CodePickler(f, protocol)
    p.dump(obj)
    return f.getvalue()
def dumps ( obj , protocol = None ) : # IDLE passes 'None' to select pickle.DEFAULT_PROTOCOL. f = io . BytesIO ( ) p = CodePickler ( f , protocol ) p . dump ( obj ) return f . getvalue ( )