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
b355304e
Kaydet (Commit)
b355304e
authored
Eyl 01, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document PyCFunctionWithKeywords, add comment for PEP 3123.
üst
a6f52786
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
newtypes.rst
Doc/c-api/newtypes.rst
+10
-1
No files found.
Doc/c-api/newtypes.rst
Dosyayı görüntüle @
b355304e
...
@@ -139,6 +139,7 @@ definition of all other Python objects.
...
@@ -139,6 +139,7 @@ definition of all other Python objects.
These macros are used in the definition of :ctype:`PyObject` and
These macros are used in the definition of :ctype:`PyObject` and
:ctype:`PyVarObject`:
:ctype:`PyVarObject`:
.. XXX need to document PEP 3123 changes here
.. cmacro:: PyObject_HEAD
.. cmacro:: PyObject_HEAD
...
@@ -171,7 +172,7 @@ These macros are used in the definition of :ctype:`PyObject` and
...
@@ -171,7 +172,7 @@ These macros are used in the definition of :ctype:`PyObject` and
Note that :cmacro:`PyObject_HEAD` is part of the expansion, and that its own
Note that :cmacro:`PyObject_HEAD` is part of the expansion, and that its own
expansion varies depending on the definition of :cmacro:`Py_TRACE_REFS`.
expansion varies depending on the definition of :cmacro:`Py_TRACE_REFS`.
PyObject_HEAD_INIT
.. cmacro::
PyObject_HEAD_INIT
.. ctype:: PyCFunction
.. ctype:: PyCFunction
...
@@ -183,6 +184,14 @@ PyObject_HEAD_INIT
...
@@ -183,6 +184,14 @@ PyObject_HEAD_INIT
in Python. The function must return a new reference.
in Python. The function must return a new reference.
.. ctype:: PyCFunctionWithKeywords
Type of the functions used to implement Python callables in C that take
keyword arguments: they take three :ctype:`PyObject\*` parameters and return
one such value. See :ctype:`PyCFunction` above for the meaning of the return
value.
.. ctype:: PyMethodDef
.. ctype:: PyMethodDef
Structure used to describe a method of an extension type. This structure has
Structure used to describe a method of an extension type. This structure has
...
...
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