Message363379
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. |
|
Date |
User |
Action |
Args |
2020-03-04 19:10:16 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, eric.smith, Marco Sulla |
2020-03-04 19:10:16 | serhiy.storchaka | set | messageid: <1583349016.87.0.500957340787.issue39842@roundup.psfhosted.org> |
2020-03-04 19:10:16 | serhiy.storchaka | link | issue39842 messages |
2020-03-04 19:10:16 | serhiy.storchaka | create | |
|