mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Export type objects to Python
This commit is contained in:
parent
6dd4868681
commit
a755e68df6
19 changed files with 111 additions and 7 deletions
|
@ -797,6 +797,10 @@ void initSnd()
|
|||
if (Snd_Error == NULL ||
|
||||
PyDict_SetItemString(d, "Error", Snd_Error) != 0)
|
||||
Py_FatalError("can't initialize Snd.Error");
|
||||
SndChannel_Type.ob_type = &PyType_Type;
|
||||
Py_INCREF(&SndChannel_Type);
|
||||
if (PyDict_SetItemString(d, "SndChannelType", (PyObject *)&SndChannel_Type) != 0)
|
||||
Py_FatalError("can't initialize SndChannelType");
|
||||
}
|
||||
|
||||
/* ========================= End module Snd ========================= */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue