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
7837a968
Kaydet (Commit)
7837a968
authored
Eyl 02, 2009
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use true kwonly arg instead of **kwds hackaround.
üst
5dbb84a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
pstats.py
Lib/pstats.py
+2
-14
No files found.
Lib/pstats.py
Dosyayı görüntüle @
7837a968
...
...
@@ -70,20 +70,8 @@ class Stats:
print_stats(5).print_callers(5)
"""
def
__init__
(
self
,
*
args
,
**
kwds
):
# I can't figure out how to explictly specify a stream keyword arg
# with *args:
# def __init__(self, *args, stream=sys.stdout): ...
# so I use **kwds and sqauwk if something unexpected is passed in.
self
.
stream
=
sys
.
stdout
if
"stream"
in
kwds
:
self
.
stream
=
kwds
[
"stream"
]
del
kwds
[
"stream"
]
if
kwds
:
keys
=
kwds
.
keys
()
keys
.
sort
()
extras
=
", "
.
join
([
"
%
s=
%
s"
%
(
k
,
kwds
[
k
])
for
k
in
keys
])
raise
ValueError
(
"unrecognized keyword args:
%
s"
%
extras
)
def
__init__
(
self
,
*
args
,
stream
=
None
):
self
.
stream
=
stream
or
sys
.
stdout
if
not
len
(
args
):
arg
=
None
else
:
...
...
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