[Tutor] best way to dynamically set class variables?

Albert-Jan Roskam sjeik_appie at hotmail.com
Fri Nov 9 08:26:48 EST 2018


On 8 Nov 2018 17:34, Avi Gross <avigross at verizon.net> wrote:

> What can you do to minimize risks in such > situations?

ast.literal_eval, with a smallish maximum string length? https://docs.python.org/3/library/ast.html.

(That's exactly the only ast function that know! :-)


More information about the Tutor mailing list