1、PEG 语法解释器
文档:https://www.python.org/dev/peps/pep-0617/
2、__peg_parser__所在Python版本
PEG 语法解释器将在Python 3.10中删除。另外,它在早期的Python版本中不存在。
Python 2.7:
>>> __peg_parser__ Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name '__peg_parser__' is not defined
Python 3.6:
>>> __peg_parser__ Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name '__peg_parser__' is not defined
Python 3.9:
>>> __peg_parser__ File "<stdin>", line 1 __peg_parser__ ^ SyntaxError: You found it!
Python 3.10:
>>> __peg_parser__ Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name '__peg_parser__' is not defined