Python - pickle.dump() without a file -


this question has answer here:

this code have:

with open(testify, 'w') fh:     pickle.dump((f,t), fh) 

i need data in code without dumping file because needs send remote location.

i have tried:

data = pickle.dumps(f, t) 

but did not work. how can done?

you can use pickle.dumps((f, t)) dump string instead


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -