You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Example where a pool of http servers share a single listening socketfromBaseHTTPServerimportHTTPServerfromSimpleHTTPServerimportSimpleHTTPRequestHandler
...
print'Serving at http://%s:%d using %d worker processes'% \
(ADDRESS[0], ADDRESS[1], NUMBER_OF_PROCESSES)
print'To exit press Ctrl-'+ ['C', 'Break'][sys.platform=='win32']
#updatefromhttp.serverimportHTTPServer, SimpleHTTPRequestHandler
...
print('Serving at http://%s:%d using %d worker processes'% \
(ADDRESS[0], ADDRESS[1], NUMBER_OF_PROCESSES))
print('To exit press Ctrl-'+ ['C', 'Break'][sys.platform=='win32'])
This still does not run on Windows
_pickle.PicklingError: Can't pickle <class '_thread.lock'>: attribute lookup lock on _thread failed
but that was true in 2.7 also (bpo-21204).
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: