3 ms·
Sorry if I was abrasive in my response. Let me address two of the points here: >> The "globals().update(vars(module))" line actually increased my blood pressur
by zomglings 6y ago
Sorry if I was abrasive in my response. Let me address two of the points here:
>> The "globals().update(vars(module))" line actually increased my blood pressure.
> Being a little dramatic here, aren't we? Please elaborate on what is wrong here.
and
>> Please show some consideration to your teammates that help you keep your applications running.
The reason I don't like this is that it first dynamically imports the right module and then implicitly sets global variables using the variables from that module using vars. This means that someone couldn't use simple greps or such searches to trace the logic through which a parameter was set (a go-to tool when debugging code someone else put into a docker container).
- - -
> Clearly I have some work to do on my writing.
Your writing is good. I disagree with your approach to solving the problem. Willing to accept that my position is wrong, but am reluctant to do so since it's built on bitter experience.