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 july
Recipients docs@python, july
Date 2015-06-01.19:05:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Documentation of Template says:

$identifier names a substitution placeholder matching a mapping key of "identifier". By default, "identifier" must spell a Python identifier. The first non-identifier character after the $ character terminates this placeholder specification.

While it was true when these lines were written, Python 3 has greatly extended identifier character set, and it no longer matches the set of characters used by Template:

>>> Template('$foo123щъ').substitute(foo=1, foo123=2, foo123щъ=3)

I propose clarifying documentation.

Actually extending character set is backward-incompatible, although it won't be if restricted to "${identifier}" syntax.
Date User Action Args
2015-06-01 19:05:08julysetrecipients: + july, docs@python
2015-06-01 19:05:07julysetmessageid: <>
2015-06-01 19:05:07julylinkissue24351 messages
2015-06-01 19:05:07julycreate