[issue12518] In string.Template it's impossible to transform delimiter in the derived class

2017-03-28 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue12518] In string.Template it's impossible to transform delimiter in the derived class

2017-03-28 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 9f74deba784fc8781d13ed564f69c02ed7c331bb by Barry Warsaw in branch 'master': Improve the documentation for template strings (#856) https://github.com/python/cpython/commit/9f74deba784fc8781d13ed564f69c02ed7c331bb --

[issue12518] In string.Template it's impossible to transform delimiter in the derived class

2017-03-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: As this issue has been open for a long time, and I don't think it's worth changing the implementation, I am changing this to a documentation bug and will fix it along with the rewrites for bpo-19824 and bpo-20314 -- assignee: -> barry components:

[issue12518] In string.Template it's impossible to transform delimiter in the derived class

2011-07-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: See 629200d880ea for answers. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12518 ___

[issue12518] In string.Template it's impossible to transform delimiter in the derived class

2011-07-11 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I don't know that anybody relies on the current behavior and computers are now a bazillion times faster than they were in 2004, so who needs that micro optimization any more? -- ___ Python tracker

[issue12518] In string.Template it's impossible to transform delimiter in the derived class

2011-07-08 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: 3.1 is in security fixes-only mode -- nosy: +SilentGhost versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12518

[issue12518] In string.Template it's impossible to transform delimiter in the derived class

2011-07-08 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You are correct that this is a feature request as written. I think there is also a doc bug (the docs should probably mention that changing delimiter after class creation is a no-op). To add this feature the computation of the regex

[issue12518] In string.Template it's impossible to transform delimiter in the derived class

2011-07-07 Thread py.user
New submission from py.user port...@yandex.ru: import string class MyTemplate(string.Template): ... delimiter = '.' ... MyTemplate.delimiter = 'x' mt = MyTemplate('.field xfield') mt.substitute(field=None) 'None xfield' mt.delimiter 'x' If I want to change the pattern string by any