Serhiy Storchaka <[email protected]> added the comment:
What would "{} {}".partial_format({}) return?
It is not possible to implement a "safe" variant of str.format(), because in
difference to Template it can call arbitrary code and allows easily to produce
arbitrary large strings. Template is more appropriate if the template came from
untrusted source or if it is composed by inexperienced user.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39842>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com