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