1756 lines · 44.1 KB · Text
RawDownload
# Created by Skip Montanaro <skip@mojam.com>. # Format:#	function ':' type ':' [param name] ':' [refcount effect] ':' [comment]# If the param name slot is empty, that line corresponds to the function's# return value, otherwise it's the type of the named parameter. # The first line of a function block gives type/refcount information for the# function's return value.  Successive lines with the same function name# correspond to the function's parameter list and appear in the order the# parameters appear in the function's prototype. # For readability, each function's lines are surrounded by a blank line.# The blocks are sorted alphabetically by function name. # Refcount behavior is given for all PyObject* types: 0 (no change), +1# (increment) and -1 (decrement).  A blank refcount field indicates the# parameter or function value is not a PyObject* and is therefore not# subject to reference counting.  A special case for the value "null"# (without quotes) is used for functions which return a PyObject* type but# always return NULL.  This is used by some of the PyErr_*() functions, in# particular. # XXX NOTE: the 0/+1/-1 refcount information for arguments is# confusing!  Much more useful would be to indicate whether the# function "steals" a reference to the argument or not.  Take for# example PyList_SetItem(list, i, item).  This lists as a 0 change for# both the list and the item arguments.  However, in fact it steals a# reference to the item argument! # The parameter names are as they appear in the API manual, not the source# code.  PyBool_FromLong:PyObject*::+1:PyBool_FromLong:long:v:0: PyBuffer_FromObject:PyObject*::+1:PyBuffer_FromObject:PyObject*:base:+1:PyBuffer_FromObject:int:offset::PyBuffer_FromObject:int:size:: PyBuffer_FromReadWriteObject:PyObject*::+1:PyBuffer_FromReadWriteObject:PyObject*:base:+1:PyBuffer_FromReadWriteObject:int:offset::PyBuffer_FromReadWriteObject:int:size:: PyBuffer_FromMemory:PyObject*::+1:PyBuffer_FromMemory:void*:ptr::PyBuffer_FromMemory:int:size:: PyBuffer_FromReadWriteMemory:PyObject*::+1:PyBuffer_FromReadWriteMemory:void*:ptr::PyBuffer_FromReadWriteMemory:int:size:: PyBuffer_New:PyObject*::+1:PyBuffer_New:int:size:: PyCObject_AsVoidPtr:void*:::PyCObject_AsVoidPtr:PyObject*:self:0: PyCObject_FromVoidPtr:PyObject*::+1:PyCObject_FromVoidPtr:void*:cobj::PyCObject_FromVoidPtr::void (* destr)(void* ):: PyCObject_FromVoidPtrAndDesc:PyObject*::+1:PyCObject_FromVoidPtrAndDesc:void*:cobj::PyCObject_FromVoidPtrAndDesc:void*:desc::PyCObject_FromVoidPtrAndDesc:void(*)(void*,void*):destr:: PyCObject_GetDesc:void*:::PyCObject_GetDesc:PyObject*:self:0: PyCell_New:PyObject*::+1:PyCell_New:PyObject*:ob:0: PyCell_GET:PyObject*::0:PyCell_GET:PyObject*:ob:0: PyCell_Get:PyObject*::+1:PyCell_Get:PyObject*:cell:0: PyCell_SET:void:::PyCell_SET:PyObject*:cell:0:PyCell_SET:PyObject*:value:0: PyCell_Set:int:::PyCell_Set:PyObject*:cell:0:PyCell_Set:PyObject*:value:0: PyCallIter_New:PyObject*::+1:PyCallIter_New:PyObject*:callable::PyCallIter_New:PyObject*:sentinel:: PyCallable_Check:int:::PyCallable_Check:PyObject*:o:0: PyComplex_AsCComplex:Py_complex:::PyComplex_AsCComplex:PyObject*:op:0: PyComplex_Check:int:::PyComplex_Check:PyObject*:p:0: PyComplex_FromCComplex:PyObject*::+1:PyComplex_FromCComplex::Py_complex v:: PyComplex_FromDoubles:PyObject*::+1:PyComplex_FromDoubles::double real::PyComplex_FromDoubles::double imag:: PyComplex_ImagAsDouble:double:::PyComplex_ImagAsDouble:PyObject*:op:0: PyComplex_RealAsDouble:double:::PyComplex_RealAsDouble:PyObject*:op:0: PyDate_FromDate:PyObject*::+1:PyDate_FromDate:int:year::PyDate_FromDate:int:month::PyDate_FromDate:int:day:: PyDate_FromTimestamp:PyObject*::+1:PyDate_FromTimestamp:PyObject*:args:0: PyDateTime_FromDateAndTime:PyObject*::+1:PyDateTime_FromDateAndTime:int:year::PyDateTime_FromDateAndTime:int:month::PyDateTime_FromDateAndTime:int:day::PyDateTime_FromDateAndTime:int:hour::PyDateTime_FromDateAndTime:int:minute::PyDateTime_FromDateAndTime:int:second::PyDateTime_FromDateAndTime:int:usecond:: PyDateTime_FromTimestamp:PyObject*::+1:PyDateTime_FromTimestamp:PyObject*:args:0: PyDelta_FromDSU:PyObject*::+1:PyDelta_FromDSU:int:days::PyDelta_FromDSU:int:seconds::PyDelta_FromDSU:int:useconds:: PyDescr_NewClassMethod:PyObject*::+1:PyDescr_NewClassMethod:PyTypeObject*:type::PyDescr_NewClassMethod:PyMethodDef*:method:: PyDescr_NewGetSet:PyObject*::+1:PyDescr_NewGetSet:PyTypeObject*:type::PyDescr_NewGetSet:PyGetSetDef*:getset:: PyDescr_NewMember:PyObject*::+1:PyDescr_NewMember:PyTypeObject*:type::PyDescr_NewMember:PyMemberDef*:member:: PyDescr_NewMethod:PyObject*::+1:PyDescr_NewMethod:PyTypeObject*:type::PyDescr_NewMethod:PyMethodDef*:meth:: PyDescr_NewWrapper:PyObject*::+1:PyDescr_NewWrapper:PyTypeObject*:type::PyDescr_NewWrapper:struct wrapperbase*:base::PyDescr_NewWrapper:void*:wrapped:: PyDict_Check:int:::PyDict_Check:PyObject*:p:0: PyDict_Clear:void:::PyDict_Clear:PyObject*:p:0: PyDict_DelItem:int:::PyDict_DelItem:PyObject*:p:0:PyDict_DelItem:PyObject*:key:0: PyDict_DelItemString:int:::PyDict_DelItemString:PyObject*:p:0:PyDict_DelItemString:char*:key:: PyDict_GetItem:PyObject*::0:0PyDict_GetItem:PyObject*:p:0:PyDict_GetItem:PyObject*:key:0: PyDict_GetItemString:PyObject*::0:PyDict_GetItemString:PyObject*:p:0:PyDict_GetItemString:char*:key:: PyDict_Items:PyObject*::+1:PyDict_Items:PyObject*:p:0: PyDict_Keys:PyObject*::+1:PyDict_Keys:PyObject*:p:0: PyDict_New:PyObject*::+1: PyDict_Copy:PyObject*::+1:PyDict_Copy:PyObject*:p:0: PyDict_Next:int:::PyDict_Next:PyObject*:p:0:PyDict_Next:int:ppos::PyDict_Next:PyObject**:pkey:0:PyDict_Next:PyObject**:pvalue:0: PyDict_SetItem:int:::PyDict_SetItem:PyObject*:p:0:PyDict_SetItem:PyObject*:key:+1:PyDict_SetItem:PyObject*:val:+1: PyDict_SetItemString:int:::PyDict_SetItemString:PyObject*:p:0:PyDict_SetItemString:char*:key::PyDict_SetItemString:PyObject*:val:+1: PyDict_Size:int:::PyDict_Size:PyObject*:p:: PyDict_Values:PyObject*::+1:PyDict_Values:PyObject*:p:0: PyDictProxy_New:PyObject*::+1:PyDictProxy_New:PyObject*:dict:0: PyErr_BadArgument:int::: PyErr_BadInternalCall:void::: PyErr_CheckSignals:int::: PyErr_Clear:void::: PyErr_ExceptionMatches:int:::PyErr_ExceptionMatches:PyObject*:exc:0: PyErr_Fetch:void:::PyErr_Fetch:PyObject**:ptype:0:PyErr_Fetch:PyObject**:pvalue:0:PyErr_Fetch:PyObject**:ptraceback:0: PyErr_GivenExceptionMatches:int:::PyErr_GivenExceptionMatches:PyObject*:given:0:PyErr_GivenExceptionMatches:PyObject*:exc:0: PyErr_NewException:PyObject*::+1:PyErr_NewException:char*:name::PyErr_NewException:PyObject*:base:0:PyErr_NewException:PyObject*:dict:0: PyErr_NoMemory:PyObject*::null: PyErr_NormalizeException:void:::PyErr_NormalizeException:PyObject**:exc::???PyErr_NormalizeException:PyObject**:val::???PyErr_NormalizeException:PyObject**:tb::??? PyErr_Occurred:PyObject*::0: PyErr_Print:void::: PyErr_Restore:void:::PyErr_Restore:PyObject*:type:-1:PyErr_Restore:PyObject*:value:-1:PyErr_Restore:PyObject*:traceback:-1: PyErr_SetExcFromWindowsErr:PyObject*::null:PyErr_SetExcFromWindowsErr:PyObject*:type:0:PyErr_SetExcFromWindowsErr:int:ierr:: PyErr_SetExcFromWindowsErrWithFilename:PyObject*::null:PyErr_SetExcFromWindowsErrWithFilename:PyObject*:type:0:PyErr_SetExcFromWindowsErrWithFilename:int:ierr::PyErr_SetExcFromWindowsErrWithFilename:char*:filename:: PyErr_SetFromErrno:PyObject*::null:PyErr_SetFromErrno:PyObject*:type:0: PyErr_SetFromErrnoWithFilename:PyObject*::null:PyErr_SetFromErrnoWithFilename:PyObject*:type:0:PyErr_SetFromErrnoWithFilename:char*:filename:: PyErr_SetFromWindowsErr:PyObject*::null:PyErr_SetFromWindowsErr:int:ierr:: PyErr_SetFromWindowsErrWithFilename:PyObject*::null:PyErr_SetFromWindowsErrWithFilename:int:ierr::PyErr_SetFromWindowsErrWithFilename:char*:filename:: PyErr_SetInterrupt:void::: PyErr_SetNone:void:::PyErr_SetNone:PyObject*:type:+1: PyErr_SetObject:void:::PyErr_SetObject:PyObject*:type:+1:PyErr_SetObject:PyObject*:value:+1: PyErr_SetString:void:::PyErr_SetString:PyObject*:type:+1:PyErr_SetString:char*:message:: PyErr_Format:PyObject*::null:PyErr_Format:PyObject*:exception:+1:PyErr_Format:char*:format::PyErr_Format::...:: PyErr_Warn:int:::PyErr_Warn:PyObject*:category:0:PyErr_Warn:char*:message:: PyErr_WarnEx:int:::PyErr_WarnEx:PyObject*:category:0:PyErr_WarnEx:const char*:message::PyErr_WarnEx:Py_ssize_t:stack_level:: PyEval_AcquireLock:void::: PyEval_AcquireThread:void:::PyEval_AcquireThread:PyThreadState*:tstate:: PyEval_InitThreads:void::: PyEval_ReleaseLock:void::: PyEval_ReleaseThread:void:::PyEval_ReleaseThread:PyThreadState*:tstate:: PyEval_RestoreThread:void:::PyEval_RestoreThread:PyThreadState*:tstate:: PyEval_SaveThread:PyThreadState*::: PyEval_EvalCode:PyObject*::+1:PyEval_EvalCode:PyCodeObject*:co:0:PyEval_EvalCode:PyObject*:globals:0:PyEval_EvalCode:PyObject*:locals:0: PyFile_AsFile:FILE*:::PyFile_AsFile:PyFileObject*:p:0: PyFile_Check:int:::PyFile_Check:PyObject*:p:0: PyFile_FromFile:PyObject*::+1:PyFile_FromFile:FILE*:fp::PyFile_FromFile:char*:name::PyFile_FromFile:char*:mode::PyFile_FromFile:int(*:close):: PyFile_FromString:PyObject*::+1:PyFile_FromString:char*:name::PyFile_FromString:char*:mode:: PyFile_GetLine:PyObject*::+1:PyFile_GetLine:PyObject*:p::PyFile_GetLine:int:n:: PyFile_Name:PyObject*::0:PyFile_Name:PyObject*:p:0: PyFile_SetBufSize:void:::PyFile_SetBufSize:PyFileObject*:p:0:PyFile_SetBufSize:int:n:: PyFile_SoftSpace:int:::PyFile_SoftSpace:PyFileObject*:p:0:PyFile_SoftSpace:int:newflag:: PyFile_WriteObject:int:::PyFile_WriteObject:PyObject*:obj:0:PyFile_WriteObject:PyFileObject*:p:0:PyFile_WriteObject:int:flags:: PyFile_WriteString:int:::PyFile_WriteString:const char*:s::PyFile_WriteString:PyFileObject*:p:0:PyFile_WriteString:int:flags:: PyFloat_AS_DOUBLE:double:::PyFloat_AS_DOUBLE:PyObject*:pyfloat:0: PyFloat_AsDouble:double:::PyFloat_AsDouble:PyObject*:pyfloat:0: PyFloat_Check:int:::PyFloat_Check:PyObject*:p:0: PyFloat_FromDouble:PyObject*::+1:PyFloat_FromDouble:double:v:: PyFloat_FromString:PyObject*::+1:PyFloat_FromString:PyObject*:str:0:PyFloat_FromString:char**:pend:0:ignored PyFrozenSet_New:PyObject*::+1:PyFrozenSet_New:PyObject*:iterable:0: PyFunction_GetClosure:PyObject*::0:PyFunction_GetClosure:PyObject*:op:0: PyFunction_GetCode:PyObject*::0:PyFunction_GetCode:PyObject*:op:0: PyFunction_GetDefaults:PyObject*::0:PyFunction_GetDefaults:PyObject*:op:0: PyFunction_GetGlobals:PyObject*::0:PyFunction_GetGlobals:PyObject*:op:0: PyFunction_GetModule:PyObject*::0:PyFunction_GetModule:PyObject*:op:0: PyFunction_New:PyObject*::+1:PyFunction_New:PyObject*:code:+1:PyFunction_New:PyObject*:globals:+1: PyFunction_SetClosure:int:::PyFunction_SetClosure:PyObject*:op:0:PyFunction_SetClosure:PyObject*:closure:+1: PyFunction_SetDefaults:int:::PyFunction_SetDefaults:PyObject*:op:0:PyFunction_SetDefaults:PyObject*:defaults:+1: PyGen_New:PyObject*::+1:PyGen_New:PyFrameObject*:frame:0: Py_InitModule:PyObject*::0:Py_InitModule:char*:name::Py_InitModule:PyMethodDef[]:methods:: Py_InitModule3:PyObject*::0:Py_InitModule3:char*:name::Py_InitModule3:PyMethodDef[]:methods::Py_InitModule3:char*:doc:: Py_InitModule4:PyObject*::0:Py_InitModule4:char*:name::Py_InitModule4:PyMethodDef[]:methods::Py_InitModule4:char*:doc::Py_InitModule4:PyObject*:self::Py_InitModule4:int:apiver::usually provided by Py_InitModule or Py_InitModule3 PyImport_AddModule:PyObject*::0:reference borrowed from sys.modulesPyImport_AddModule:char*:name:: PyImport_Cleanup:void::: PyImport_ExecCodeModule:PyObject*::+1:PyImport_ExecCodeModule:char*:name::PyImport_ExecCodeModule:PyObject*:co:0: PyImport_GetMagicNumber:long::: PyImport_GetModuleDict:PyObject*::0: PyImport_Import:PyObject*::+1:PyImport_Import:PyObject*:name:0: PyImport_ImportFrozenModule:int:::PyImport_ImportFrozenModule:char*::: PyImport_ImportModule:PyObject*::+1:PyImport_ImportModule:char*:name:: PyImport_ImportModuleEx:PyObject*::+1:PyImport_ImportModuleEx:char*:name::PyImport_ImportModuleEx:PyObject*:globals:0:???PyImport_ImportModuleEx:PyObject*:locals:0:???PyImport_ImportModuleEx:PyObject*:fromlist:0:??? PyImport_ReloadModule:PyObject*::+1:PyImport_ReloadModule:PyObject*:m:0: PyInstance_New:PyObject*::+1:PyInstance_New:PyObject*:klass:+1:PyInstance_New:PyObject*:arg:0:PyInstance_New:PyObject*:kw:0: PyInstance_NewRaw:PyObject*::+1:PyInstance_NewRaw:PyObject*:klass:+1:PyInstance_NewRaw:PyObject*:dict:+1: PyInt_AS_LONG:long:::PyInt_AS_LONG:PyIntObject*:io:0: PyInt_AsLong:long:::PyInt_AsLong:PyObject*:io:0: PyInt_Check:int:::PyInt_Check:PyObject*:op:0: PyInt_FromLong:PyObject*::+1:PyInt_FromLong:long:ival:: PyInt_FromString:PyObject*::+1:PyInt_FromString:char*:str:0:PyInt_FromString:char**:pend:0:PyInt_FromString:int:base:0: PyInt_FromSsize_t:PyObject*::+1:PyInt_FromSsize_t:Py_ssize_t:ival:: PyInt_GetMax:long::: 

Lines 1–500 of 1756.