资讯

As an example, the socket module generates many different exceptions for various conditions, and they all are named "error". What makes each condition distinct lies in the exceptions details.
The only time to pickle something is if you need to represent a non-string object on disk, but Python code is strings. I presume that the receiving program is basically calling eval (skt.recv ()).