Pickle LadonType subclasses

Asked by Anant Asthana

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:
Last reply:
Revision history for this message
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

Revision history for this message
jsgaarde (jakob-simon-gaarde) said :
#2
Revision history for this message
jsgaarde (jakob-simon-gaarde) said :
#3

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.