Home
last modified time | relevance | path

Searched refs:Random_Type (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Modules/
D_randommodule.c83 PyObject *Random_Type; member
522 if (type == (PyTypeObject*)_randomstate_global->Random_Type && in random_new()
574 Py_VISIT(get_random_state(module)->Random_Type); in _random_traverse()
581 Py_CLEAR(get_random_state(module)->Random_Type); in _random_clear()
609 PyObject *Random_Type = PyType_FromSpec(&Random_Type_spec); in PyInit__random() local
610 if (Random_Type == NULL) { in PyInit__random()
616 Py_DECREF(Random_Type); in PyInit__random()
619 get_random_state(m)->Random_Type = Random_Type; in PyInit__random()
621 Py_INCREF(Random_Type); in PyInit__random()
622 PyModule_AddObject(m, "Random", Random_Type); in PyInit__random()
/external/python/cpython2/Modules/
D_randommodule.c85 static PyTypeObject Random_Type; variable
87 #define RandomObject_Check(v) (Py_TYPE(v) == &Random_Type)
513 if (type == &Random_Type && !_PyArg_NoKeywords("Random()", kwds)) in random_new()
549 static PyTypeObject Random_Type = { variable
601 if (PyType_Ready(&Random_Type) < 0) in init_random()
606 Py_INCREF(&Random_Type); in init_random()
607 PyModule_AddObject(m, "Random", (PyObject *)&Random_Type); in init_random()