R. David Murray added the comment: You haven't presented an actual use case, it would be interesting to see one.
Regardless of that, however, ast.literal_eval is an exposure of the literal value parsing part of the AST. set() is not part of that, because it is not a literal, it is a function call. There has been some discussion of adding a "safe_eval" function to the stdlib (see issue 22525), and that would be the appropriate place to introduce evaluation of set(). python-ideas would be the appropriate place to discuss safe_eval. ---------- nosy: +r.david.murray _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24663> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com