pyt fails if any chunk of text starts with a pyt command nam
Status: Beta
Brought to you by:
comb
#!/usr/bin/python
"""
Shows pyt error...
If a chunk of text happens to start with the name of a pyt command
like ('list', 'exec', 'embed', 'if', 'while', 'link'), then pyt
crashes and burns.
"""
import pyt
p = pyt.pyt("""\
my items
<[list]>
item %(j)d
<[for j in range(1,3)]>""")
print p.run(globals())
p = pyt.pyt("""\
list of my items
<[list]>
item %(j)d
<[for j in range(1,3)]>""")
print p.run(globals())