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
f9b0cc7d
Kaydet (Commit)
f9b0cc7d
authored
Ock 31, 2003
tarafından
Jeremy Hylton
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document __module__.
üst
4f0dcc9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
ref3.tex
Doc/ref/ref3.tex
+11
-3
No files found.
Doc/ref/ref3.tex
Dosyayı görüntüle @
f9b0cc7d
...
...
@@ -436,8 +436,10 @@ parameter list.
\obindex
{
user-defined function
}
Special attributes:
\member
{
func
_
doc
}
or
\member
{__
doc
__}
is the
function's documentation string, or
None
if unavailable;
function's documentation string, or
\code
{
None
}
if unavailable;
\member
{
func
_
name
}
or
\member
{__
name
__}
is the function's name;
\member
{__
module
__}
is the name of the module the function was defined
in, or
\code
{
None
}
if unavailable;
\member
{
func
_
defaults
}
is a tuple containing default argument values for
those arguments that have defaults, or
\code
{
None
}
if no arguments
have a default value;
\member
{
func
_
code
}
is the code object representing
...
...
@@ -460,6 +462,7 @@ description of internal types below.
\ttindex
{
func
_
doc
}
\ttindex
{__
doc
__}
\ttindex
{__
name
__}
\ttindex
{__
module
__}
\ttindex
{__
dict
__}
\ttindex
{
func
_
defaults
}
\ttindex
{
func
_
closure
}
...
...
@@ -482,10 +485,14 @@ object, \member{im_func} is the function object;
or the class that asked for the method for unbound methods);
\member
{__
doc
__}
is the method's documentation (same as
\code
{
im
_
func.
__
doc
__}
);
\member
{__
name
__}
is the method name (same as
\code
{
im
_
func.
__
name
__}
).
\code
{
im
_
func.
__
name
__}
);
\member
{__
module
__}
is the name of the
module the method was defined in, or
\code
{
None
}
if unavailable.
\versionchanged
[
\member
{
im
_
self
}
used to refer to the class that
defined the method]
{
2.2
}
\withsubitem
{
(method attribute)
}{
\ttindex
{__
doc
__}
\ttindex
{__
name
__}
\ttindex
{__
module
__}
\ttindex
{
im
_
func
}
\ttindex
{
im
_
self
}}
...
...
@@ -555,7 +562,8 @@ determined by the C function.
Special read-only attributes:
\member
{__
doc
__}
is the function's
documentation string, or
\code
{
None
}
if unavailable;
\member
{__
name
__}
is the function's name;
\member
{__
self
__}
is set to
\code
{
None
}
(but see
the next item).
the next item);
\member
{__
module
__}
is the name of the module the
function was defined in or
\code
{
None
}
if unavailable.
\obindex
{
built-in function
}
\obindex
{
function
}
\indexii
{
C
}{
language
}
...
...
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