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
5ffad664
Kaydet (Commit)
5ffad664
authored
May 16, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make generator repr consistent with function and code object repr.
üst
a8eaf8fa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
test_generators.py
Lib/test/test_generators.py
+1
-1
test_genexps.py
Lib/test/test_genexps.py
+1
-1
genobject.c
Objects/genobject.c
+1
-1
No files found.
Lib/test/test_generators.py
Dosyayı görüntüle @
5ffad664
...
...
@@ -927,7 +927,7 @@ Test the __name__ attribute and the repr()
>>> g.__name__
'f'
>>> repr(g) # doctest: +ELLIPSIS
'<
f generator object
at ...>'
'<
generator object f
at ...>'
"""
# conjoin is a simple backtracking generator, named in honor of Icon's
...
...
Lib/test/test_genexps.py
Dosyayı görüntüle @
5ffad664
...
...
@@ -92,7 +92,7 @@ Verify that parenthesis are required when used as a keyword argument value
Verify that parenthesis are required when used as a keyword argument value
>>> dict(a = (i for i in xrange(10))) #doctest: +ELLIPSIS
{'a': <
<genexpr> generator object
at ...>}
{'a': <
generator object <genexpr>
at ...>}
Verify early binding for the outermost for-expression
...
...
Objects/genobject.c
Dosyayı görüntüle @
5ffad664
...
...
@@ -288,7 +288,7 @@ gen_repr(PyGenObject *gen)
code_name
=
PyString_AsString
(((
PyCodeObject
*
)
gen
->
gi_code
)
->
co_name
);
if
(
code_name
==
NULL
)
return
NULL
;
return
PyString_FromFormat
(
"<
%.200s generator object
at %p>"
,
return
PyString_FromFormat
(
"<
generator object %.200s
at %p>"
,
code_name
,
gen
);
}
...
...
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