Message54520
The regular expressions in string.Template can be
overidden, but there's not an easy way to override the
expression for variables inside braces and to a
different expression than variables not in braces.
E.g., you might allow full expressions in braces
(including arbitrary punctuation), but only normal
variable names outside. An example of using this kind
of technique:
http://svn.colorstudy.com/home/ianb/recipes/sub_expr.py
So, in summary, idpattern should be split into two,
idpattern and bracepattern. (Maybe a default of None
for bracepattern, and use idpattern if bracepattern is
None -- this would be backward compatible so that
overriding only idpattern will effect both) |
|
Date |
User |
Action |
Args |
2007-08-23 16:10:59 | admin | link | issue1198569 messages |
2007-08-23 16:10:59 | admin | create | |
|