mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 21:34:32 +08:00
Some docstring changes.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
"""
|
"""
|
||||||
The ``Parser`` tries to convert the available Python code in an easy to read
|
The ``Parser`` tries to convert the available Python code in an easy to read
|
||||||
format, something like an abstract syntax tree. The classes who represent this
|
format, something like an abstract syntax tree. The classes who represent this
|
||||||
tree, are sitting in the :mod:`jedi.parser.tree` module.
|
tree, are sitting in the :mod:`parso.tree` module.
|
||||||
|
|
||||||
The Python module ``tokenize`` is a very important part in the ``Parser``,
|
The Python module ``tokenize`` is a very important part in the ``Parser``,
|
||||||
because it splits the code into different words (tokens). Sometimes it looks a
|
because it splits the code into different words (tokens). Sometimes it looks a
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
"""
|
"""
|
||||||
This tokenizer has been copied from the ``tokenize.py`` standard library
|
This tokenizer has been copied from the ``tokenize.py`` standard library
|
||||||
tokenizer. The reason was simple: The standard library tokenizer fails
|
tokenizer. The reason was simple: The standard library tokenizer fails
|
||||||
if the indentation is not right. The fast parser of jedi however requires
|
if the indentation is not right. To make it possible to do error recovery the
|
||||||
"wrong" indentation.
|
tokenizer needed to be rewritten.
|
||||||
|
|
||||||
Basically this is a stripped down version of the standard library module, so
|
Basically this is a stripped down version of the standard library module, so
|
||||||
you can read the documentation there. Additionally we included some speed and
|
you can read the documentation there. Additionally we included some speed and
|
||||||
|
|||||||
Reference in New Issue
Block a user