I would like to serialize a socket object(actually it's a dictionary that contain a socket object).
I have read about Pickle but, a socket object could not be picklable.
Crossbones+ - Reputation: 12910
Posted 24 January 2013 - 05:25 AM
It doesn't make sense to serialize a socket - it's an operating system resource. What are you hoping to accomplish by serializing a socket object?
“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”