best proceed enterprising classes controlling python globals()


i'm operative web concentration relapse non-static set modules depending user input. any way python category constructor accepts unparalleled parameter an '.html' ability contains output.



pulling category boldly tellurian namespace works:



result = globals()[classname](param).html


and it's definitely some-more laconic than:



if classname == 'foo':
outcome = foo(param).html
elif classname == 'bar':
...


what deliberate best proceed this, stylistically? there risks reasons tellurian namespace?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?