|
|
|
|
|
by willcipriano
659 days ago
|
|
Being as specific as possible with your types is how you make things more readable in Python. OrderedDict where the order matters, set where there are no duplicate items possible, The newish enums are great for things that have a limited set of values (dev, test, qa, prod) vs using a string. You can say a lot with type choice. Another reason is I think that 3.7 behavior is just a C Python implementation detail, other interpreters may not honor it. |
|
If Dict already guarantees to keep Order, nothing ist won by using both Dict and OrderedDict. Just use Dict.