Jacob S. wrote:
Rich needs to
make the % formatting "%d"%x instead of "%s"%x because he showed that x
is an integer not a string.
Actually %s formatting is very flexible and forgiving, it outputs str(x)
whatever x is. For example:
>>> for x in ['string', 10, True, [1,2,3] ]:
... print '%s'
Nobody explicitly mentioned that you're trying to make a pattern from an
integer and not a string, which, I believe is required. Also, Rich needs to
make the % formatting "%d"%x instead of "%s"%x because he showed that x
is an integer not a string.
There's my two bits.
Jacob Schmidt
> Hi Gro