Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c47d77 commit 23157e5Copy full SHA for 23157e5
1 file changed
Doc/library/re.rst
@@ -1331,12 +1331,15 @@ successive matches::
1331
if pos != len(s):
1332
raise RuntimeError('Unexpected character %r on line %d' %(s[pos], line))
1333
1334
- >>> statements = '''\
+ statements = '''\
1335
total := total + price * quantity;
1336
tax := price * 0.05;
1337
'''
1338
- >>> for token in tokenize(statements):
1339
- print(token)
+
+ for token in tokenize(statements):
1340
+ print(token)
1341
1342
+The tokenizer produces the following output::
1343
1344
Token(typ='ID', value='total', line=1, column=8)
1345
Token(typ='ASSIGN', value=':=', line=1, column=14)
0 commit comments