dot-notation

Python class __call__ method and dot notation

Python class __call__ method and dot notation Question: My Goal is to use dot notation to select strings from dictionarys using the SimpleNamespace modeule while having the ability to change which dictionary to use. To do this i have tried modifying the class __call__ method to change the output based on a previously set variable. …

Total answers: 1