Pickle LadonType subclasses

Asked by Anant Asthana on 2012-07-17

I am trying to pickle a subclass of LadonType for caching with memcache, and i am getting errors in the pickle step.
Is there any way to pickle ladon objects or another approach you would recommend to be able to cache these objects?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
ladon Edit question
Assignee:
No assignee Edit question
Last query:
2012-07-17
Last reply:
2012-07-18
jsgaarde (jakob-simon-gaarde) said : #1

Hi Anant.

In fact there is, we do this all the time :-)

Look at this:
http://pastebin.com/iLpvRBDf

We use Ladon's prime_dict functionality to do this

Best Regards
Jakob Simon-Gaarde

Can you help with this problem?

Provide an answer of your own, or ask Anant Asthana for more information if necessary.

To post a message you must log in.