KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have to pickle an array of objects like this: import cPickle as pickle from numpy import sin, cos, array tmp = lambda x: sin(x)+cos(x) test = array([[tmp,tmp],[tmp,tmp]],dtype=object) pickle.dump( test, open('test.lambda','w') ) and it gives the following error: TypeError: can't pickle function objects Is there a way around that?
Tags (comma-separated)
Save Edits
Cancel