Commit ec28787b authored by Raymond Hettinger's avatar Raymond Hettinger

Neaten up example so it can be cut and pasted.

parents 0d2e98e7 70b134a7
...@@ -1339,8 +1339,8 @@ successive matches:: ...@@ -1339,8 +1339,8 @@ successive matches::
tax := price * 0.05; tax := price * 0.05;
''' '''
>>> for token in tokenize(statements): >>> for token in tokenize(statements):
... print(token) print(token)
...
Token(typ='ID', value='total', line=1, column=8) Token(typ='ID', value='total', line=1, column=8)
Token(typ='ASSIGN', value=':=', line=1, column=14) Token(typ='ASSIGN', value=':=', line=1, column=14)
Token(typ='ID', value='total', line=1, column=17) Token(typ='ID', value='total', line=1, column=17)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment