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
8d0645cb
Kaydet (Commit)
8d0645cb
authored
Ara 12, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a note about yield requiring a __future__ directive.
üst
1529ef86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ref6.tex
Doc/ref/ref6.tex
+10
-0
No files found.
Doc/ref/ref6.tex
Dosyayı görüntüle @
8d0645cb
...
...
@@ -482,6 +482,16 @@ difficulty is that there's no guarantee the generator will ever be
resumed, hence no guarantee that the
\keyword
{
finally
}
block will ever
get executed.
\note
{
In Python 2.2, the
\keyword
{
yield
}
statement is only allowed
when the
\code
{
generators
}
feature has been enabled. It will always
be enabled in Python 2.3. This
\code
{__
future
__}
import statment can
be used to enable the feature:
}
\begin{verbatim}
from
__
future
__
import generators
\end{verbatim}
\begin{seealso}
\seepep
{
0255
}{
Simple Generators
}
{
The proposal for adding generators and the
\keyword
{
yield
}
...
...
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