[docs] [issue24351] string.Template documentation incorrectly references "identifiers"

Barry A. Warsaw report at bugs.python.org
Fri Jun 5 18:46:00 CEST 2015


Barry A. Warsaw added the comment:

Rather than change the code, which strives to keep the "Simple" in PEP 292's title, I'd rather just update the documentation to define what "identifier" means here.  E.g.

"
* ``$identifier`` names a substitution placeholder matching a mapping key of
  ``"identifier"``.  By default, ``"identifier"`` is restricted to any
  case-insensitive ASCII alphanumeric string (including underscores) that
  starts with an underscore or ASCII letter.  The first non-identifier
  character after the ``$`` character terminates this placeholder
  specification.
"

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24351>
_______________________________________


More information about the docs mailing list