mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Fix typo in example regular expression.
This commit is contained in:
parent
35c87f2b8e
commit
8f5dbc83ea
1 changed files with 1 additions and 1 deletions
|
|
@ -1299,7 +1299,7 @@ successive matches::
|
|||
|
||||
def tokenize(s):
|
||||
tok_spec = [
|
||||
('NUMBER', r'\d+(.\d+)?'), # Integer or decimal number
|
||||
('NUMBER', r'\d+(\.\d*)?'), # Integer or decimal number
|
||||
('ASSIGN', r':='), # Assignment operator
|
||||
('END', ';'), # Statement terminator
|
||||
('ID', r'[A-Za-z]+'), # Identifiers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue