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
01cc2d5f
Kaydet (Commit)
01cc2d5f
authored
Mar 03, 2014
tarafından
Ethan Furman
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue20653: fix ReST for Enum
üst
2da95046
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
enum.rst
Doc/library/enum.rst
+10
-10
No files found.
Doc/library/enum.rst
Dosyayı görüntüle @
01cc2d5f
...
...
@@ -425,7 +425,7 @@ The solution is to specify the module name explicitly as follows::
.. warning::
If
:param module:
is not supplied, and Enum cannot determine what it is,
If
``module``
is not supplied, and Enum cannot determine what it is,
the new Enum members will not be unpicklable; to keep errors closer to
the source, pickling will be disabled.
...
...
@@ -440,26 +440,26 @@ The complete signature is::
Enum(value='NewEnumName', names=<...>, *, module='...', qualname='...', type=<mixed-in class>)
:
param
value: What the new Enum class will record as its name.
:value: What the new Enum class will record as its name.
:
param names: The Enum members. This can be a whitespace or comma seperated
string
::
:
names: The Enum members. This can be a whitespace or comma seperated string
(values will start at 1)
::
'red green blue'
, 'red,green,blue',
'red, green, blue'
'red green blue'
| 'red,green,blue' |
'red, green, blue'
(values will start at 1), or an iterator of name, value
pairs::
or an iterator of (name, value)
pairs::
[('cyan', 4), ('magenta', 5), ('yellow', 6)]
or a mapping::
or a mapping::
{'chartruese': 7, 'sea_green': 11, 'rosemary': 42}
:
param
module: name of module where new Enum class can be found.
:module: name of module where new Enum class can be found.
:
param
qualname: where in module new Enum class can be found.
:qualname: where in module new Enum class can be found.
:
param
type: type to mix in to new Enum class.
:type: type to mix in to new Enum class.
Derived Enumerations
...
...
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