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
b233e544
Kaydet (Commit)
b233e544
authored
Tem 15, 2003
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Nits.
üst
edd07737
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tut.tex
Doc/tut/tut.tex
+2
-2
No files found.
Doc/tut/tut.tex
Dosyayı görüntüle @
b233e544
...
...
@@ -3330,7 +3330,7 @@ be accessed or printed directly without having to reference \code{.args}.
... raise Exception
(
'spam', 'eggs'
)
... except Exception, inst:
... print type
(
inst
)
# the exception instance
... print inst.args
# arguments stored in .args
... print inst.args
# arguments stored in .args
... print inst #
__
str
__
allows args to printed directly
... x, y
=
inst #
__
getitem
__
allows args to be unpacked directly
... print 'x
=
', x
...
...
@@ -4299,7 +4299,7 @@ iterators as described in the previous section. What makes generators so
compact is that the
\method
{__
iter
__
()
}
and
\method
{
next
()
}
methods are
created automatically.
Another
other
key feature is that the local variables and execution state
Another key feature is that the local variables and execution state
are automatically saved between calls. This made the function easier to write
and much more clear than an approach using class variables like
\code
{
self.index
}
and
\code
{
self.data
}
.
...
...
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