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
007a9031
Kaydet (Commit)
007a9031
authored
Tem 12, 2014
tarafından
Alexander Belopolsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21966: Respect -q command-line option when code module is ran.
Contributed by Anton Barkovsky.
üst
de1fb666
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
code.py
Lib/code.py
+10
-1
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/code.py
Dosyayı görüntüle @
007a9031
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
import
sys
import
sys
import
traceback
import
traceback
import
argparse
from
codeop
import
CommandCompiler
,
compile_command
from
codeop
import
CommandCompiler
,
compile_command
__all__
=
[
"InteractiveInterpreter"
,
"InteractiveConsole"
,
"interact"
,
__all__
=
[
"InteractiveInterpreter"
,
"InteractiveConsole"
,
"interact"
,
...
@@ -299,4 +300,12 @@ def interact(banner=None, readfunc=None, local=None):
...
@@ -299,4 +300,12 @@ def interact(banner=None, readfunc=None, local=None):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
interact
()
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
'-q'
,
action
=
'store_true'
,
help
=
"don't print version and copyright messages"
)
args
=
parser
.
parse_args
()
if
args
.
q
or
sys
.
flags
.
quiet
:
banner
=
''
else
:
banner
=
None
interact
(
banner
)
Misc/NEWS
Dosyayı görüntüle @
007a9031
...
@@ -108,6 +108,8 @@ Core and Builtins
...
@@ -108,6 +108,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #21966: Respect -q command-line option when code module is ran.
- Issue #19076: Don'
t
pass
the
redundant
'file'
argument
to
self
.
error
().
- Issue #19076: Don'
t
pass
the
redundant
'file'
argument
to
self
.
error
().
-
Issue
#
16382
:
Improve
exception
message
of
warnings
.
warn
()
for
bad
-
Issue
#
16382
:
Improve
exception
message
of
warnings
.
warn
()
for
bad
...
...
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