is it possible to add dictionary property to module. we can add dictionary property to classes with adding __getitem__ method. i hope we can do that same thing on modules.
example
I tried it but it not working
example
import mymodule print( mymodule["2 + 2"] ) # output => '4'
I tried it but it not working
#mymodule.py __dict__ = {"2 + 2": "4", "python": 3.4, "os": "fedora"} def __getitem__(key): return __dict__[key]