Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ee814bf2
Kaydet (Commit)
ee814bf2
authored
Kas 28, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added documentation for the Py_InitModule*() family of functions.
üst
83ff4af1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletion
+47
-1
api.tex
Doc/api/api.tex
+31
-1
refcounts.dat
Doc/api/refcounts.dat
+16
-0
No files found.
Doc/api/api.tex
Dosyayı görüntüle @
ee814bf2
...
@@ -4650,7 +4650,37 @@ implementing new object types in C.
...
@@ -4650,7 +4650,37 @@ implementing new object types in C.
\begin{cfuncdesc}
{
void
}{
PyObject
_
DEL
}{
PyObject *op
}
\begin{cfuncdesc}
{
void
}{
PyObject
_
DEL
}{
PyObject *op
}
\end{cfuncdesc}
\end{cfuncdesc}
Py
_
InitModule (!!!)
\begin{cfuncdesc}
{
PyObject*
}{
Py
_
InitModule
}{
char *name,
PyMethodDef *methods
}
Create a new module object based on a name and table of functions,
returning the new module object.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
Py
_
InitModule3
}{
char *name,
PyMethodDef *methods,
char *doc
}
Create a new module object based on a name and table of functions,
returning the new module object. If
\var
{
doc
}
is non-
\NULL
, it will
be used to define the docstring for the module.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
Py
_
InitModule4
}{
char *name,
PyMethodDef *methods,
char *doc, PyObject *self,
int apiver
}
Create a new module object based on a name and table of functions,
returning the new module object. If
\var
{
doc
}
is non-
\NULL
, it will
be used to define the docstring for the module. If
\var
{
self
}
is
non-
\NULL
, it will passed to the functions of the module as their
(otherwise
\NULL
) first parameter. (This was added as an
experimental feature, and there are no known uses in the current
version of Python.) For
\var
{
apiver
}
, the only value which should
be passed is defined by the constant
\constant
{
PYTHON
_
API
_
VERSION
}
.
\strong
{
Note:
}
Most uses of this function should probably be using
the
\cfunction
{
Py
_
InitModule3()
}
instead; only use this if you are
sure you need it.
\end{cfuncdesc}
PyArg
_
ParseTupleAndKeywords, PyArg
_
ParseTuple, PyArg
_
Parse
PyArg
_
ParseTupleAndKeywords, PyArg
_
ParseTuple, PyArg
_
Parse
...
...
Doc/api/refcounts.dat
Dosyayı görüntüle @
ee814bf2
...
@@ -274,6 +274,22 @@ PyFloat_Check:PyObject*:p:0:
...
@@ -274,6 +274,22 @@ PyFloat_Check:PyObject*:p:0:
PyFloat_FromDouble:PyObject*::+1:
PyFloat_FromDouble:PyObject*::+1:
PyFloat_FromDouble:double:v::
PyFloat_FromDouble:double:v::
Py_InitModule:PyObject*::0:
Py_InitModule:name:char*::
Py_InitModule:methods:PyMethodDef[]::
Py_InitModule3:PyObject*::0:
Py_InitModule3:name:char*::
Py_InitModule3:methods:PyMethodDef[]::
Py_InitModule3:doc:char*::
Py_InitModule4:PyObject*::0:
Py_InitModule4:name:char*::
Py_InitModule4:methods:PyMethodDef[]::
Py_InitModule4:doc:char*::
Py_InitModule4:self:PyObject*::
Py_InitModule4:apiver:int::usually provided by Py_InitModule or Py_InitModule3
PyImport_AddModule:PyObject*::0:reference borrowed from sys.modules
PyImport_AddModule:PyObject*::0:reference borrowed from sys.modules
PyImport_AddModule:char*:name::
PyImport_AddModule:char*:name::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment