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
dc07bac2
Kaydet (Commit)
dc07bac2
authored
Eyl 21, 2012
tarafından
Larry Hastings
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Mention that "defaults" can be None for inspect.getfullargspec.
Also minor formatting cleanups.
üst
9471797c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
inspect.rst
Doc/library/inspect.rst
+6
-5
No files found.
Doc/library/inspect.rst
Dosyayı görüntüle @
dc07bac2
...
@@ -675,9 +675,9 @@ Classes and functions
...
@@ -675,9 +675,9 @@ Classes and functions
:term:`named tuple` ``ArgSpec(args, varargs, keywords, defaults)`` is
:term:`named tuple` ``ArgSpec(args, varargs, keywords, defaults)`` is
returned. *args* is a list of the argument names. *varargs* and *keywords*
returned. *args* is a list of the argument names. *varargs* and *keywords*
are the names of the ``*`` and ``**`` arguments or ``None``. *defaults* is a
are the names of the ``*`` and ``**`` arguments or ``None``. *defaults* is a
tuple of default argument values or
None if there are no default arguments;
tuple of default argument values or
``None`` if there are no default
if this tuple has *n* elements, they correspond to the last *n* elements
arguments; if this tuple has *n* elements, they correspond to the last
listed in *args*.
*n* elements
listed in *args*.
.. deprecated:: 3.0
.. deprecated:: 3.0
Use :func:`getfullargspec` instead, which provides information about
Use :func:`getfullargspec` instead, which provides information about
...
@@ -693,8 +693,9 @@ Classes and functions
...
@@ -693,8 +693,9 @@ Classes and functions
annotations)``
annotations)``
*args* is a list of the argument names. *varargs* and *varkw* are the names
*args* is a list of the argument names. *varargs* and *varkw* are the names
of the ``*`` and ``**`` arguments or ``None``. *defaults* is an n-tuple of
of the ``*`` and ``**`` arguments or ``None``. *defaults* is an *n*-tuple
the default values of the last n arguments. *kwonlyargs* is a list of
of the default values of the last *n* arguments, or ``None`` if there are no
default arguments. *kwonlyargs* is a list of
keyword-only argument names. *kwonlydefaults* is a dictionary mapping names
keyword-only argument names. *kwonlydefaults* is a dictionary mapping names
from kwonlyargs to defaults. *annotations* is a dictionary mapping argument
from kwonlyargs to defaults. *annotations* is a dictionary mapping argument
names to annotations.
names to annotations.
...
...
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