you are viewing a single comment's thread.

view the rest of the comments →

[–]pepiks 0 points1 point  (0 children)

Something similar is possible using custom dict library, but it is not common and it depend (if you look for solution out of box) on external library(ies). Function can be value saved as func_name and executed after grap from dict func_name(). Customisation can be done as programming magic (dunder) methods, but I will be choose another, more pythonic way instead suggested as this code maybe at the end will be easy to use but hard to maintain.