Marco Sulla <launchpad....@marco.sulla.e4ward.com> added the comment:
> 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? ---------- _______________________________________ 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