Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #63776

extracting string.Template substitution placeholders

Date 2014-01-12 10:08 -0500
From "Eric S. Johansson" <esj@harvee.org>
Subject extracting string.Template substitution placeholders
Newsgroups comp.lang.python
Message-ID <mailman.5370.1389539678.18130.python-list@python.org> (permalink)

Show all headers | View raw


As part of speech recognition accessibility tools that I'm building, I'm 
using string.Template. In order to construct on-the-fly grammar, I need 
to know all of the identifiers before the template is filled in. what is 
the best way to do this?

can string.Template handle recursive expansion i.e. an identifier 
contains a template.

Thanks
--- eric

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

extracting string.Template substitution placeholders "Eric S. Johansson" <esj@harvee.org> - 2014-01-12 10:08 -0500
  Re: extracting string.Template substitution placeholders Steven D'Aprano <steve@pearwood.info> - 2014-01-13 07:24 +0000
    Re: extracting string.Template substitution placeholders "Eric S. Johansson" <esj@harvee.org> - 2014-01-14 22:07 -0500
  Re: extracting string.Template substitution placeholders gmflanagan <cyclebelfast@gmail.com> - 2014-01-16 22:07 -0800
    Re: extracting string.Template substitution placeholders Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-01-17 09:25 +0000

csiph-web