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
7d967712
Kaydet (Commit)
7d967712
authored
Ock 05, 2011
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update tests and whatsnew for the 'quiet' flag
üst
90e8f8cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
3.2.rst
Doc/whatsnew/3.2.rst
+8
-1
test_sys.py
Lib/test/test_sys.py
+1
-1
No files found.
Doc/whatsnew/3.2.rst
Dosyayı görüntüle @
7d967712
...
...
@@ -383,7 +383,14 @@ Some smaller changes made to the core Python language are:
(Suggested by Mark Dickinson and implemented by Eric Smith in :issue:`7094`.)
* The interpreter can now be started with a quiet option, ``-q``, to suppress
the copyright and version information in an interactive mode.
the copyright and version information in an interactive mode. The option can
be introspected using the :attr:`sys.flags` attribute::
$ python -q
>>> sys.flags
sys.flags(debug=0, division_warning=0, inspect=0, interactive=0,
optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
ignore_environment=0, verbose=0, bytes_warning=0, quiet=1)
(Contributed by Marcin Wojdyr in issue:`1772833`).
...
...
Lib/test/test_sys.py
Dosyayı görüntüle @
7d967712
...
...
@@ -501,7 +501,7 @@ class SysModuleTest(unittest.TestCase):
attrs
=
(
"debug"
,
"division_warning"
,
"inspect"
,
"interactive"
,
"optimize"
,
"dont_write_bytecode"
,
"no_user_site"
,
"no_site"
,
"ignore_environment"
,
"verbose"
,
"bytes_warning"
)
"bytes_warning"
,
"quiet"
)
for
attr
in
attrs
:
self
.
assertTrue
(
hasattr
(
sys
.
flags
,
attr
),
attr
)
self
.
assertEqual
(
type
(
getattr
(
sys
.
flags
,
attr
)),
int
,
attr
)
...
...
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