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: 9981
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?
The slowsort algorithm is a perfect illustration of the multiply and surrender paradigm, which is perhaps the single most important paradigm in the development of reluctant algorithms. The basic multiply and surrender strategy consists in replacing the problem at hand by two or more subproblems, each slightly simpler than the original, and continue multiplying subproblems and subsubproblems recursively in this fashion as long as possible. At some point the subproblems will all become so simple that their solution can no longer be postponed, and we will have to surrender. Experience shows that, in most cases, by the time this point is reached the total work will be substantially higher than what could have been wasted by a more direct approach.
- Pessimal Algorithms and Simplexity Analysis