STINNER Victor <vstin...@python.org> added the comment:
And I found 135 more static types with this command: --- grep -E '^PyTypeObject [a-zA-Z_0-9]+ *(;|= *{|) *$' $(find -name "*.c") --- Types: Objects/cellobject.c: PyCell_Type Objects/sliceobject.c: PyEllipsis_Type Objects/sliceobject.c: PySlice_Type Objects/unionobject.c: _PyUnion_Type Objects/methodobject.c: PyCFunction_Type Objects/methodobject.c: PyCMethod_Type Objects/picklebufobject.c: PyPickleBuffer_Type Objects/boolobject.c: PyBool_Type Objects/bytearrayobject.c: PyByteArray_Type Objects/bytearrayobject.c: PyByteArrayIter_Type Objects/classobject.c: PyMethod_Type Objects/classobject.c: PyInstanceMethod_Type Objects/fileobject.c: PyStdPrinter_Type Objects/genericaliasobject.c: Py_GenericAliasType Objects/interpreteridobject.c: _PyInterpreterID_Type Objects/iterobject.c: PySeqIter_Type Objects/iterobject.c: PyCallIter_Type Objects/iterobject.c: _PyAnextAwaitable_Type Objects/moduleobject.c: PyModuleDef_Type Objects/moduleobject.c: PyModule_Type Objects/rangeobject.c: PyRange_Type Objects/rangeobject.c: PyRangeIter_Type Objects/rangeobject.c: PyLongRangeIter_Type Objects/namespaceobject.c: _PyNamespace_Type Objects/bytesobject.c: PyBytes_Type Objects/bytesobject.c: PyBytesIter_Type Objects/capsule.c: PyCapsule_Type Objects/complexobject.c: PyComplex_Type Objects/dictobject.c: PyDict_Type Objects/dictobject.c: PyDictIterKey_Type Objects/dictobject.c: PyDictIterValue_Type Objects/dictobject.c: PyDictIterItem_Type Objects/dictobject.c: PyDictRevIterKey_Type Objects/dictobject.c: PyDictRevIterItem_Type Objects/dictobject.c: PyDictRevIterValue_Type Objects/dictobject.c: PyDictKeys_Type Objects/dictobject.c: PyDictItems_Type Objects/dictobject.c: PyDictValues_Type Objects/floatobject.c: PyFloat_Type Objects/frameobject.c: PyFrame_Type Objects/funcobject.c: PyFunction_Type Objects/funcobject.c: PyClassMethod_Type Objects/funcobject.c: PyStaticMethod_Type Objects/memoryobject.c: _PyManagedBuffer_Type Objects/memoryobject.c: PyMemoryView_Type Objects/odictobject.c: PyODict_Type Objects/odictobject.c: PyODictIter_Type Objects/odictobject.c: PyODictKeys_Type Objects/odictobject.c: PyODictItems_Type Objects/odictobject.c: PyODictValues_Type Objects/setobject.c: PySetIter_Type Objects/setobject.c: PySet_Type Objects/setobject.c: PyFrozenSet_Type Objects/setobject.c: _PySetDummy_Type Objects/tupleobject.c: PyTuple_Type Objects/tupleobject.c: PyTupleIter_Type Objects/object.c: _PyNone_Type Objects/object.c: _PyNotImplemented_Type Objects/unicodeobject.c: PyUnicode_Type Objects/unicodeobject.c: PyUnicodeIter_Type Objects/listobject.c: PyList_Type Objects/listobject.c: PyListIter_Type Objects/listobject.c: PyListRevIter_Type Objects/genobject.c: PyGen_Type Objects/genobject.c: PyCoro_Type Objects/genobject.c: _PyCoroWrapper_Type Objects/genobject.c: PyAsyncGen_Type Objects/genobject.c: _PyAsyncGenASend_Type Objects/genobject.c: _PyAsyncGenWrappedValue_Type Objects/genobject.c: _PyAsyncGenAThrow_Type Objects/longobject.c: PyLong_Type Objects/descrobject.c: PyMethodDescr_Type Objects/descrobject.c: PyClassMethodDescr_Type Objects/descrobject.c: PyMemberDescr_Type Objects/descrobject.c: PyGetSetDescr_Type Objects/descrobject.c: PyWrapperDescr_Type Objects/descrobject.c: _PyMethodWrapper_Type Objects/descrobject.c: PyDictProxy_Type Objects/descrobject.c: PyProperty_Type Objects/enumobject.c: PyEnum_Type Objects/enumobject.c: PyReversed_Type Objects/codeobject.c: _LineIterator Objects/codeobject.c: _PositionsIterator Objects/codeobject.c: PyCode_Type Objects/typeobject.c: PyType_Type Objects/typeobject.c: PyBaseObject_Type Objects/typeobject.c: PySuper_Type Python/bltinmodule.c: PyFilter_Type Python/bltinmodule.c: PyMap_Type Python/bltinmodule.c: PyZip_Type Python/context.c: PyContext_Type Python/context.c: PyContextVar_Type Python/context.c: PyContextToken_Type Python/context.c: _PyContextTokenMissing_Type Python/hamt.c: _PyHamtItems_Type Python/hamt.c: _PyHamtKeys_Type Python/hamt.c: _PyHamtValues_Type Python/hamt.c: _PyHamt_Type Python/hamt.c: _PyHamt_ArrayNode_Type Python/hamt.c: _PyHamt_BitmapNode_Type Python/hamt.c: _PyHamt_CollisionNode_Type Python/traceback.c: PyTraceBack_Type Python/symtable.c: PySTEntry_Type Modules/_ctypes/callproc.c: PyCArg_Type Modules/_ctypes/_ctypes.c: PyCStructType_Type Modules/_ctypes/_ctypes.c: PyCPointerType_Type Modules/_ctypes/_ctypes.c: PyCArrayType_Type Modules/_ctypes/_ctypes.c: PyCSimpleType_Type Modules/_ctypes/_ctypes.c: PyCFuncPtrType_Type Modules/_ctypes/_ctypes.c: PyCData_Type Modules/_ctypes/_ctypes.c: PyCFuncPtr_Type Modules/_ctypes/_ctypes.c: PyCArray_Type Modules/_ctypes/_ctypes.c: PyCPointer_Type Modules/_ctypes/cfield.c: PyCField_Type Modules/_ctypes/stgdict.c: PyCStgDict_Type Modules/_ctypes/callbacks.c: PyCThunk_Type Modules/_io/iobase.c: PyIOBase_Type Modules/_io/iobase.c: PyRawIOBase_Type Modules/_io/stringio.c: PyStringIO_Type Modules/_io/textio.c: PyTextIOBase_Type Modules/_io/textio.c: PyIncrementalNewlineDecoder_Type Modules/_io/textio.c: PyTextIOWrapper_Type Modules/_io/bytesio.c: PyBytesIO_Type Modules/_io/fileio.c: PyFileIO_Type; Modules/_io/fileio.c: PyFileIO_Type Modules/_io/winconsoleio.c: PyWindowsConsoleIO_Type; Modules/_io/winconsoleio.c: PyWindowsConsoleIO_Type Modules/_io/bufferedio.c: PyBufferedIOBase_Type Modules/_io/bufferedio.c: PyBufferedReader_Type Modules/_io/bufferedio.c: PyBufferedWriter_Type Modules/_io/bufferedio.c: PyBufferedRWPair_Type Modules/_io/bufferedio.c: PyBufferedRandom_Type Modules/_multiprocessing/semaphore.c: _PyMp_SemLockType Modules/_cursesmodule.c: PyCursesWindow_Type; Modules/_cursesmodule.c: PyCursesWindow_Type ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue40077> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com