]> granicus.if.org Git - python/commit
bpo-1198569: Allow string.Template braced pattern to be different (#3288)
authorBarry Warsaw <barry@python.org>
Mon, 4 Sep 2017 20:32:10 +0000 (16:32 -0400)
committerGitHub <noreply@github.com>
Mon, 4 Sep 2017 20:32:10 +0000 (16:32 -0400)
commitba4279683f8eb8f59be10d12547ea89480614388
treea04e6ac5d0855275d27308072b05c7635423ed9e
parentf9f17346d722b6f073a048b41ec0d6adf336d1d2
bpo-1198569: Allow string.Template braced pattern to be different (#3288)

* bpo-1198569: Allow the braced pattern to be different

``string.Template`` subclasses can optionally define ``braceidpattern`` if
they want to specify different placeholder patterns inside and outside the
braces.  If None (the default) it falls back to ``idpattern``.
Doc/library/string.rst
Lib/string.py
Lib/test/test_string.py
Misc/NEWS.d/next/Library/2017-09-04-10-53-06.bpo-1198569.vhh2nY.rst [new file with mode: 0644]