A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2002-December/032114.html below:

[Python-checkins] python/dist/src/Modules xxmodule.c,2.32,2.33

[Python-checkins] python/dist/src/Modules xxmodule.c,2.32,2.33rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Sun, 29 Dec 2002 09:16:51 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv2157

Modified Files:
	xxmodule.c 
Log Message:
Demonstrate use of PyType_Ready() in the example.


Index: xxmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/xxmodule.c,v
retrieving revision 2.32
retrieving revision 2.33
diff -C2 -d -r2.32 -r2.33
*** xxmodule.c	14 Aug 2002 01:44:33 -0000	2.32
--- xxmodule.c	29 Dec 2002 17:16:49 -0000	2.33
***************
*** 236,242 ****
  	PyObject *m;
  
! 	/* Initialize the type of the new type object here; doing it here
! 	 * is required for portability to Windows without requiring C++. */
! 	Xxo_Type.ob_type = &PyType_Type;
  
  	/* Create the module and add the functions */
--- 236,244 ----
  	PyObject *m;
  
! 	/* Finalize the type object including setting type of the new type
! 	 * object; doing it here is required for portability to Windows 
! 	 * without requiring C++. */
! 	if (PyType_Ready(&Xxo_Type) < 0)
! 		return;
  
  	/* Create the module and add the functions */





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