Skip to content

Commit 25ed221

Browse files
committed
Enum
1 parent e79b047 commit 25ed221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,13 +805,13 @@ Cutlery = Enum('Cutlery', 'knife fork spoon')
805805
Cutlery = Enum('Cutlery', {'knife': 1, 'fork': 2, 'spoon': 3})
806806
```
807807

808-
#### Functions can not be values, so they must be wrapped:
809808
```python
810809
from functools import partial
811810
LogicOp = Enum('LogicOp', {'AND': partial(lambda l, r: l and r),
812811
'OR' : partial(lambda l, r: l or r)})
813812
```
814813

814+
* **Functions can not be values, so they must be wrapped.**
815815

816816
System
817817
------

0 commit comments

Comments
 (0)