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
93d7dda9
Kaydet (Commit)
93d7dda9
authored
Eki 05, 2013
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#19148: fix markup errors and wording in enum docs. Patch by Esa Peuha.
üst
a3494785
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
enum.rst
Doc/library/enum.rst
+7
-7
ACKS
Misc/ACKS
+1
-0
No files found.
Doc/library/enum.rst
Dosyayı görüntüle @
93d7dda9
...
...
@@ -250,7 +250,7 @@ Equality comparisons are defined though::
True
Comparisons against non-enumeration values will always compare not equal
(again, class:`IntEnum` was explicitly designed to behave differently, see
(again,
:
class:`IntEnum` was explicitly designed to behave differently, see
below)::
>>> Color.blue == 2
...
...
@@ -594,8 +594,8 @@ alias::
.. note::
This is a useful example for subclassing Enum to add or change other
behaviors as well as disallowing aliases. If the only
change desired
is
no aliases allowed
the :func:`unique` decorator can be used instead.
behaviors as well as disallowing aliases. If the only
desired change
is
disallowing aliases
the :func:`unique` decorator can be used instead.
Planet
...
...
@@ -671,11 +671,11 @@ the member::
...
AttributeError: 'Color' object has no attribute 'blue'
Likewise, the :attr:`__members__` is only available on the class.
Likewise, the :attr:`__members__` is only available on the class.
If you give your :class:`Enum` subclass extra methods, like the `Planet`_
class above, those methods will show up in a :func:`dir` of the member,
but not of the class::
If you give your :class:`Enum` subclass extra methods, like the `Planet`_
class above, those methods will show up in a :func:`dir` of the member,
but not of the class::
>>> dir(Planet)
['EARTH', 'JUPITER', 'MARS', 'MERCURY', 'NEPTUNE', 'SATURN', 'URANUS', 'VENUS', '__class__', '__doc__', '__members__', '__module__']
...
...
Misc/ACKS
Dosyayı görüntüle @
93d7dda9
...
...
@@ -988,6 +988,7 @@ Chris Petrilli
Roumen Petrov
Bjorn Pettersen
Justin D. Pettit
Esa Peuha
Ronny Pfannschmidt
Geoff Philbrick
Gavrie Philipson
...
...
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