Jul-26-2020, 05:32 AM
(This post was last modified: Jul-26-2020, 05:32 AM by Gribouillis.)
What is the advantage of doing something as unpythonic as updating locals() with 30 variables over the pythonic use of an instance which fields are these variables? For me, the only apparent benefit is that you can write
omelette
instead of b.omelette
. There are probably several drawbacks that we have not yet discovered. So, why do you absolutely want do it this way? Is it your aesthetic sense?