osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python 3.6: How to expand f-string literals read from a file vs inline statement


> Perhaps it doesn't need to be said, but just to be sure: don't use eval  if you don't trust the people writing the configuration file. They can do nearly unlimited damage to your environment.? They are writing code that you are running.

Of course! Script and config file are running in a private subnet and both are maintained by a single developer.