pickle — Python object serialization — Python 3.7.1 documentation
import pickle
binary_data = pickle.dumps(a)
with open('data.dat', 'wb') as file: file.write(binary_data)

with open('data.dat', 'rb') as file: binary_data = file.read()
data = pickle.loads(binary_data)
python  serialize  binary  save  data 
12 weeks ago
« earlier      
3d actionscript adobe air ajax algorithm algorithms amazon angular angularjs animation api app apple application architecture art article artist as3 as3.0 async atlanta audio bash blog blogs book books bouncex browser buy calendar canvas chart charts cheatsheet chrome class cli cloud cocoa code coding collaboration color commandline community compiler component components computer cooking cool course courses css css3 culture data database debug debugging demo design dev development diet diy documentation dom download drawing ebook editor education effects ember engine english es6 event events evolution extension facebook fiction file film flash flex font fonts food framework free fun functional funny game gamedev games generator git github glamour google graphics grid guide health history hollywood home hosting howto html html5 http humor icons illustration image images inspiration interesting ios ipad iphone java javascript jquery js jsfiddle json keyboard language layout learning lecture lectures library linux list literature mac map markdown math media meetup meetups mobile module music mvc nlp node nodejs npm nutritarian objective-c online oop opensource optimization osx painting pattern performance philosophy photo photographer photography photos photoshop php physics plugin podcast portraits presentation productivity programming psychology python radio react reactjs reading recipe recipes recording reddit redux reference regex regexp research resources responsive rest retro ruby science scroll scrolling search security server shakespeare sharing shopping social software sound stock svg teaching terminal testing text theatre tips tool tools toread tutorial tutorials twitter typography ui video videos visualization web web2.0 webdesign webdev webpack wiki writing youtube

Copy this bookmark: