A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-November/010641.html below:

[Python-Dev] socket.error should be an IOError?

[Python-Dev] socket.error should be an IOError?Ka-Ping Yee ping@lfw.org
Sat, 18 Nov 2000 13:57:31 -0800 (PST)
In socketmodule, socket.error is currently just a plain old error
(derived only from Exception).  Looks to me like it should be an IOError.
Do you agree?

 line 2379 of socketmodule.c:

­­­­­­­d = PyModule_GetDict(m);
­­­­­­­PySocket_Error = PyErr_NewException("socket.error", NULL, NULL);
­­­­­­­if (PySocket_Error == NULL)

...just change that first NULL to PyExc_IOError.



-- ?!ng

"All models are wrong; some models are useful."
    -- George Box




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4