Serhiy Storchaka <storchaka+cpyt...@gmail.com> 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 <rep...@bugs.python.org>
<https://bugs.python.org/issue39842>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to