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
4932e145
Kaydet (Commit)
4932e145
authored
Haz 20, 2014
tarafından
Senthil Kumaran
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
issue 20091 - index entry for __main__ in runpy docs.
üst
642d4b65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
runpy.rst
Doc/library/runpy.rst
+6
-0
No files found.
Doc/library/runpy.rst
Dosyayı görüntüle @
4932e145
...
@@ -28,6 +28,9 @@ The :mod:`runpy` module provides two functions:
...
@@ -28,6 +28,9 @@ The :mod:`runpy` module provides two functions:
..
function
::
run_module
(
mod_name
,
init_globals
=
None
,
run_name
=
None
,
alter_sys
=
False
)
..
function
::
run_module
(
mod_name
,
init_globals
=
None
,
run_name
=
None
,
alter_sys
=
False
)
..
index
::
module
:
__main__
Execute
the
code
of
the
specified
module
and
return
the
resulting
module
Execute
the
code
of
the
specified
module
and
return
the
resulting
module
globals
dictionary
.
The
module
's code is first located using the standard
globals
dictionary
.
The
module
's code is first located using the standard
import mechanism (refer to :pep:`302` for details) and then executed in a
import mechanism (refer to :pep:`302` for details) and then executed in a
...
@@ -87,6 +90,9 @@ The :mod:`runpy` module provides two functions:
...
@@ -87,6 +90,9 @@ The :mod:`runpy` module provides two functions:
.. function:: run_path(file_path, init_globals=None, run_name=None)
.. function:: run_path(file_path, init_globals=None, run_name=None)
.. index::
module: __main__
Execute the code at the named filesystem location and return the resulting
Execute the code at the named filesystem location and return the resulting
module globals dictionary. As with a script name supplied to the CPython
module globals dictionary. As with a script name supplied to the CPython
command line, the supplied path may refer to a Python source file, a
command line, the supplied path may refer to a Python source file, a
...
...
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