[Python-checkins] CVS: python/dist/src/Modules socketmodule.c,1.189,1.190

Guido van Rossum gvanrossum@users.sourceforge.net
2001年10月28日 04:31:35 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv3552
Modified Files:
	socketmodule.c 
Log Message:
Oops. In the tp_name field, the name should be "_socket.socket", not
"socket.socket" -- on Windows, "socket.socket" is the wrapper class.
Also added the module name to the SSL type (which is not a new-style
class -- I don't want to mess with it yet).
Index: socketmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.189
retrieving revision 1.190
diff -C2 -d -r1.189 -r1.190
*** socketmodule.c	2001年10月27日 22:20:47	1.189
--- socketmodule.c	2001年10月28日 12:31:33	1.190
***************
*** 1854,1858 ****
 	PyObject_HEAD_INIT(0)	/* Must fill in type value later */
 	0,					/* ob_size */
! 	"socket.socket",			/* tp_name */
 	sizeof(PySocketSockObject),		/* tp_basicsize */
 	0,					/* tp_itemsize */
--- 1854,1858 ----
 	PyObject_HEAD_INIT(0)	/* Must fill in type value later */
 	0,					/* ob_size */
! 	"_socket.socket",			/* tp_name */
 	sizeof(PySocketSockObject),		/* tp_basicsize */
 	0,					/* tp_itemsize */
***************
*** 2868,2872 ****
 	PyObject_HEAD_INIT(NULL)
 	0,				/*ob_size*/
! 	"SSL",				/*tp_name*/
 	sizeof(PySSLObject),		/*tp_basicsize*/
 	0,				/*tp_itemsize*/
--- 2868,2872 ----
 	PyObject_HEAD_INIT(NULL)
 	0,				/*ob_size*/
! 	"_socket.SSL",			/*tp_name*/
 	sizeof(PySSLObject),		/*tp_basicsize*/
 	0,				/*tp_itemsize*/

AltStyle によって変換されたページ (->オリジナル) /