On May 24, 2011, at 5:58 PM, Anthony wrote:
> Yes, in http://web2py.com/book/default/chapter/09#Custom-Formats, the book 
> says:
>  
> "Not all objects are pickleable, and not all pickled objects can be 
> un-pickled. It is safe to stick to primitive Python objects and combinations 
> of them. Objects that do not contain references to file streams or database 
> connections are usually pickleable, but they can only be un-pickled in an 
> environment where the classes of all pickled objects are already defined."
> 

The session Storage object itself is copied to a dictionary before pickling; 
it'd be reasonable to do that (and the equivalent for List) for Storage objects 
stored in the session.

Reply via email to