|
|
|
|
|
by hnlmorg
2178 days ago
|
|
I see, I do follow that design pattern for larger switch statements or where the dictionary had to be dynamically populated (even in non-Python languages) but I hadn't considered using it for smaller switch statements as well. Thank you for the example. |
|