Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\Terry>C:\programs\python32\python.exe f:/python/mypy/tem.py Traceback (most recent call last): File "", line 1, in File "C:\programs\python32\lib\multiprocessing\forking.py", line 369, in main self = load(from_parent) File "C:\programs\python32\lib\multiprocessing\reduction.py", line 193, in rebuild_s _sock = fromfd(fd, family, type_, proto) File "C:\programs\python32\lib\multiprocessing\reduction.py", line 182, in fromfd s = socket.fromfd(fd, family, type_, proto) File "C:\programs\python32\lib\socket.py", line 206, in fromfd nfd = dup(fd) socket.error: [Errno 10038] An operation was attempted on something that is not a sock Traceback (most recent call last): File "f:/python/mypy/tem.py", line 24, in print(a.recv(100)) socket.error: [Errno 10054] An existing connection was forcibly closed by the remote h C:\Users\Terry>C:\programs\python33\python.exe f:/python/mypy/tem.py print_exc(): Traceback (most recent call last): File "f:\python\mypy\traceback.py", line 11, in raises_socket_timeout() File "f:\python\mypy\traceback.py", line 8, in raises_socket_timeout s.connect(('8.8.8.8', 9999)) socket.timeout: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "f:/python/mypy/tem.py", line 2, in import multiprocessing File "C:\programs\python33\lib\multiprocessing\__init__.py", line 40, in from multiprocessing.util import SUBDEBUG, SUBWARNING File "C:\programs\python33\lib\multiprocessing\util.py", line 16, in import threading # we want threading to install it's File "C:\programs\python33\lib\threading.py", line 11, in from traceback import format_exc as _format_exc File "f:\python\mypy\traceback.py", line 14, in traceback.print_exc() AttributeError: 'module' object has no attribute 'print_exc' C:\Users\Terry>C:\programs\python27\python.exe f:/python/mypy/tem.py Traceback (most recent call last): File "f:/python/mypy/tem.py", line 20, in a, b = socketpair() File "f:/python/mypy/tem.py", line 7, in socketpair with socket.socket() as l: AttributeError: __exit__