(file_name, *args)
Using (c)Pickle to save multiple python objects in a single file.
Using (c)Pickle to save multiple python objects in a single file.
Using ( c ) Pickle to save multiple python objects in a single file .
def pickle_data(file_name, *args):
    """Using (c)Pickle to save multiple python objects in a single file.
    """
    myFile = open(file_name, "wb")
    cPickle.dump(len(args), myFile, protocol=2)
    for item in args:
        cPickle.dump(item, myFile, protocol=2)
    myFile.close()
def pickle_data ( file_name , * args ) : myFile = open ( file_name , "wb" ) cPickle . dump ( len ( args ) , myFile , protocol = 2 ) for item in args : cPickle . dump ( item , myFile , protocol = 2 ) myFile . close ( )