[issue46307] string.Template should allow inspection of identifiers

Barry A. Warsaw report at bugs.python.org
Sat Jan 8 20:11:38 EST 2022


Barry A. Warsaw <barry at python.org> added the comment:

I've never personally needed this, but I could see where it could come in handy.

I wonder if __iter__() would be the right API for that?  I wonder then if we should also implement __contains__()?

Would you be interested in creating a PR for the feature?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46307>
_______________________________________


More information about the Python-bugs-list mailing list