configparser v/s file variables
Grant Edwards
grant.b.edwards at gmail.com
Wed Jun 27 11:14:38 EDT 2018
On 2018-06-27, Abdur-Rahmaan Janhangeer <arj.python at gmail.com> wrote:
> what is more recommended and why? using configparser for settings or import
> variables from file?
Importing variables from a file is dangerous because it can execute
arbitrary code. It should never be done with files provided by the
user.
Using configparser is far, far safer.
--
Grant Edwards grant.b.edwards Yow! Psychoanalysis??
at I thought this was a nude
gmail.com rap session!!!
More information about the Python-list
mailing list