File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1331,7 +1331,7 @@ from enum import Enum, auto
13311331class < enum_name> (Enum):
13321332 < member_name> = auto() # Increment of the last numeric value or 1.
13331333 < member_name> = < value> # Values don't have to be hashable or unique.
1334- < member_name> = < el_1> , < el_2> # Values can be collections, like this tuple.
1334+ < member_name> = < el_1> , < el_2> # Values can be collections. This is a tuple.
13351335```
13361336* ** Methods receive the member they were called on as the 'self' argument.**
13371337* ** Accessing a member named after a reserved keyword causes SyntaxError.**
Original file line number Diff line number Diff line change 11491149< pre > < code class ="python language-python hljs "> < span class ="hljs-class "> < span class ="hljs-keyword "> class</ span > << span class ="hljs-title "> enum_name</ span > >< span class ="hljs-params "> (Enum)</ span > :</ span >
11501150 <member_name> = auto() < span class ="hljs-comment "> # Increment of the last numeric value or 1.</ span >
11511151 <member_name> = <value> < span class ="hljs-comment "> # Values don't have to be hashable or unique.</ span >
1152- <member_name> = <el_1>, <el_2> < span class ="hljs-comment "> # Values can be collections, like this tuple.</ span >
1152+ <member_name> = <el_1>, <el_2> < span class ="hljs-comment "> # Values can be collections. This is a tuple.</ span >
11531153</ code > </ pre >
11541154< ul >
11551155< li > < strong > Methods receive the member they were called on as the 'self' argument.</ strong > </ li >
You can’t perform that action at this time.
0 commit comments