[python] Anyone familiar with the python pickle module? I’m getting this intermitten error when I try to unpickle and object class.
File "/usr/lib/python2.7/pickle.py", line 880, in marker while stack[k] is not mark: k = k-1
That is the error.
My code is basically
class thing(): def __init__(self, x) self.x=x
I pickle with:
(store z value in an AWS SQS queue)
m=(read AWS sqs queue) r=pickle.loads(m)
I get the error if I try to …
Any clue whats going on? The script will run as expected most times but then i'll get the above error intermittenly.
I honestly have no idea where to even start.
Submitted July 09, 2017 at 04:03PM by findandwrite
via reddit http://ift.tt/2uZyXZs