Message54520
| Author |
ianbicking |
| Recipients |
| Date |
2005年05月09日.20:55:25 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
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) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 16:10:59 | admin | link | issue1198569 messages |
| 2007年08月23日 16:10:59 | admin | create |
|