Kaydet (Commit) 3b4b6fc6 authored tarafından Guido van Rossum's avatar Guido van Rossum

Add socket.socket_type, as discussed on c.l.p.

üst 05ba2ab7
......@@ -1402,6 +1402,11 @@ initsocket()
if (PySocket_Error == NULL ||
PyDict_SetItemString(d, "error", PySocket_Error) != 0)
Py_FatalError("can't define socket.error");
PySocketSock_Type.ob_type = &PyType_Type;
Py_INCREF(&PySocketSock_Type);
if (PyDict_SetItemString(d, "socket_type",
(PyObject *)&PySocketSock_Type) != 0)
Py_FatalError("can't define socket.socket_type");
insint(d, "AF_INET", AF_INET);
#ifdef AF_UNIX
insint(d, "AF_UNIX", AF_UNIX);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment