Message363388
> What would "{} {}".partial_format({}) return?
`str.partial_format()` was proposed exactly to avoid such tricks.
> It is not possible to implement a "safe" variant of str.format(),
> because in difference to Template it can call arbitrary code
If you read the documentation of `Template.safe_substitute()`, you can read also this function is not safe at all.
But Python, for example, does not implement private class attributes. Because Python is for adult and consciousness people, no? |
|
Date |
User |
Action |
Args |
2020-03-04 20:43:09 | Marco Sulla | set | recipients:
+ Marco Sulla, eric.smith, serhiy.storchaka |
2020-03-04 20:43:09 | Marco Sulla | set | messageid: <1583354589.01.0.620132346659.issue39842@roundup.psfhosted.org> |
2020-03-04 20:43:08 | Marco Sulla | link | issue39842 messages |
2020-03-04 20:43:08 | Marco Sulla | create | |
|