¡@

Home 

python Programming Glossary: bytes..

Python “IOError: [Errno 22] Invalid argument” when using cPickle to write large array to network drive

http://stackoverflow.com/questions/4226941/python-ioerror-errno-22-invalid-argument-when-using-cpickle-to-write-large

import cPickle numpy a numpy.zeros 8385007 print Writing i bytes... a.nbytes cPickle.dump a open 'test_a.pkl' 'wb' protocol 2 print.. written. b numpy.zeros 8385008 print Writing i bytes... b.nbytes cPickle.dump b open 'test_b.pkl' 'wb' protocol 2 ##Crashes.. and Settings User' In 2 run test Writing 67080056 bytes... Successfully written. Writing 67080064 bytes... Successfully..