This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Marco Sulla
Recipients Marco Sulla, eric.smith, serhiy.storchaka
Date 2020-03-04.20:43:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1583354589.01.0.620132346659.issue39842@roundup.psfhosted.org>
In-reply-to
Content
> 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?
History
Date User Action Args
2020-03-04 20:43:09Marco Sullasetrecipients: + Marco Sulla, eric.smith, serhiy.storchaka
2020-03-04 20:43:09Marco Sullasetmessageid: <1583354589.01.0.620132346659.issue39842@roundup.psfhosted.org>
2020-03-04 20:43:08Marco Sullalinkissue39842 messages
2020-03-04 20:43:08Marco Sullacreate