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
32008321
Kaydet (Commit)
32008321
authored
Agu 21, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1777168: replace operator names "opa"... with "op1"... and mark everything up as literal,
to enhance readability.
üst
ff457b1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
expressions.rst
Doc/reference/expressions.rst
+5
-5
No files found.
Doc/reference/expressions.rst
Dosyayı görüntüle @
32008321
...
...
@@ -1008,12 +1008,12 @@ Comparisons can be chained arbitrarily, e.g., ``x < y <= z`` is equivalent to
``x < y and y <= z``, except that ``y`` is evaluated only once (but in both
cases ``z`` is not evaluated at all when ``x < y`` is found to be false).
Formally, if *a*, *b*, *c*, ..., *y*, *z* are expressions and *op
a*, *opb
*, ...,
*op
y* are comparison operators, then *a opa b opb c* ...*y opy z*
is equivalent
to
*a opa b* :keyword:`and` *b opb c* :keyword:`and` ... *y opy z*, except that
e
ach expression is e
valuated at most once.
Formally, if *a*, *b*, *c*, ..., *y*, *z* are expressions and *op
1*, *op2
*, ...,
*op
N* are comparison operators, then ``a op1 b op2 c ... y opN z``
is equivalent
to
``a op1 b and b op2 c and ... y opN z``, except that each expression is
evaluated at most once.
Note that
*a opa b opb c*
doesn't imply any kind of comparison between *a* and
Note that
``a op1 b op2 c``
doesn't imply any kind of comparison between *a* and
*c*, so that, e.g., ``x < y > z`` is perfectly legal (though perhaps not
pretty).
...
...
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