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
cbb2e49c
Kaydet (Commit)
cbb2e49c
authored
Ock 09, 2011
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Hand-port parts of r87789.
üst
c40e921d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
22 deletions
+23
-22
inspect.rst
Doc/library/inspect.rst
+20
-19
executionmodel.rst
Doc/reference/executionmodel.rst
+3
-3
No files found.
Doc/library/inspect.rst
Dosyayı görüntüle @
cbb2e49c
...
...
@@ -234,14 +234,14 @@ Note:
Return a tuple of values that describe how Python will interpret the file
identified by *path* if it is a module, or ``None`` if it would not be
identified as a module. The return tuple is ``(name, suffix, mode,
mtype)``,
where *name* is the name of the module without the name of any enclosing
package, *suffix* is the trailing part of the file name (which may not be a
dot-delimited extension), *mode* is the :func:`open` mode that would be used
(``'r'`` or ``'rb'``), and *mtype* is an integer giving the type of the
module. *mtype* will have a value which can be compared to the constants
defined in the :mod:`imp` module; see the documentation for that module for
more information on module types.
identified as a module. The return tuple is ``(name, suffix, mode,
module_type)``, where *name* is the name of the module without the name of
any enclosing package, *suffix* is the trailing part of the file name (which
may not be a dot-delimited extension), *mode* is the :func:`open` mode that
would be used (``'r'`` or ``'rb'``), and *module_type* is an integer giving
the type of the module. *module_type* will have a value which can be
compared to the constants defined in the :mod:`imp` module; see the
documentation for that module for
more information on module types.
.. versionchanged:: 2.6
Returns a :term:`named tuple` ``ModuleInfo(name, suffix, mode,
...
...
@@ -464,12 +464,13 @@ Classes and functions
.. function:: getargspec(func)
Get the names and default values of a Python function's arguments. A tuple of four
things is returned: ``(args, varargs, varkw, defaults)``. *args* is a list of
the argument names (it may contain nested lists). *varargs* and *varkw* 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; if this tuple
has *n* elements, they correspond to the last *n* elements listed in *args*.
Get the names and default values of a Python function's arguments. A tuple of
four things is returned: ``(args, varargs, keywords, defaults)``. *args* is a
list of the argument names (it may contain nested lists). *varargs* and
*keywords* 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; if this tuple has *n* elements, they correspond to
the last *n* elements listed in *args*.
.. versionchanged:: 2.6
Returns a :term:`named tuple` ``ArgSpec(args, varargs, keywords,
...
...
@@ -478,11 +479,11 @@ Classes and functions
.. function:: getargvalues(frame)
Get information about arguments passed into a particular frame. A tuple of
four
things is returned: ``(args, varargs, varkw, locals)``. *args* is a list of the
argument names (it may contain nested lists). *varargs* and *varkw* are the
names of the ``*`` and ``**`` arguments or ``None``. *locals* is the locals
dictionary of the given frame.
Get information about arguments passed into a particular frame. A tuple of
four things is returned: ``(args, varargs, keywords, locals)``. *args* is a
list of the argument names (it may contain nested lists). *varargs* and
*keywords* are the names of the ``*`` and ``**`` arguments or ``None``.
*locals* is the locals
dictionary of the given frame.
.. versionchanged:: 2.6
Returns a :term:`named tuple` ``ArgInfo(args, varargs, keywords,
...
...
Doc/reference/executionmodel.rst
Dosyayı görüntüle @
cbb2e49c
...
...
@@ -140,9 +140,9 @@ weak form of restricted execution.
The namespace for a module is automatically created the first time a module is
imported. The main module for a script is always called :mod:`__main__`.
The
global statement has the same scope as a name binding operation in the same
block. If the nearest enclosing scope for a free variable contains a global
statement, the free variable is treated as a global.
The
:keyword:`global` statement has the same scope as a name binding operation
in the same block. If the nearest enclosing scope for a free variable contains
a global
statement, the free variable is treated as a global.
A class definition is an executable statement that may use and define names.
These references follow the normal rules for name resolution. The namespace of
...
...
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