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
5838d0fc
Kaydet (Commit)
5838d0fc
authored
Ock 28, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document the PyInstance_*() functions and data.
üst
0149e84a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
2 deletions
+39
-2
api.tex
Doc/api/api.tex
+30
-2
refcounts.dat
Doc/api/refcounts.dat
+9
-0
No files found.
Doc/api/api.tex
Dosyayı görüntüle @
5838d0fc
...
...
@@ -3694,6 +3694,36 @@ set.
\end{cfuncdesc}
\subsection
{
Instance Objects
\label
{
instanceObjects
}}
\obindex
{
instance
}
There are very few functions specific to instance objects.
\begin{cvardesc}
{
PyTypeObject
}{
PyInstance
_
Type
}
Type object for class instances.
\end{cvardesc}
\begin{cfuncdesc}
{
int
}{
PyInstance
_
Check
}{
PyObject *obj
}
Returns true if
\var
{
obj
}
is an instance.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyInstance
_
New
}{
PyObject *class,
PyObject *arg,
PyObject *kw
}
Create a new instance of a specific class. The parameters
\var
{
arg
}
and
\var
{
kw
}
are used as the positional and keyword parameters to
the object's constructor.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyInstance
_
NewRaw
}{
PyObject *class,
PyObject *dict
}
Create a new instance of a specific class without calling it's
constructor.
\var
{
class
}
is the class of new object. The
\var
{
dict
}
parameter will be used as the object's
\member
{__
dict
__}
;
if
\NULL
, a new dictionary will be created for the instance.
\end{cfuncdesc}
\subsection
{
Module Objects
\label
{
moduleObjects
}}
\obindex
{
module
}
...
...
@@ -4737,8 +4767,6 @@ Py_BuildValue
DL
_
IMPORT
Py*
_
Check
_
Py
_
NoneStruct
...
...
Doc/api/refcounts.dat
Dosyayı görüntüle @
5838d0fc
...
...
@@ -332,6 +332,15 @@ 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:
...
...
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