diff --git a/Doc/library/re.rst b/Doc/library/re.rst index b1c3804b67b..b2562afc31e 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -1325,9 +1325,10 @@ successive matches:: line_start = pos line += 1 elif typ != 'SKIP': + val = mo.group(typ) if typ == 'ID' and val in keywords: typ = val - yield Token(typ, mo.group(typ), line, mo.start()-line_start) + yield Token(typ, val, line, mo.start()-line_start) pos = mo.end() mo = gettok(s, pos) if pos != len(s): diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 2bcf95847c8..dfc24121969 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -805,7 +805,7 @@ always available. Python. The highest possible limit is platform-dependent. A user may need to set the - limit higher when she has a program that requires deep recursion and a platform + limit higher when they have a program that requires deep recursion and a platform that supports a higher limit. This should be done with care, because a too-high limit can lead to a crash.