mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-08 13:45:01 +08:00
Change the docstring for the cache parameter.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import hashlib
|
import hashlib
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
from parso._compatibility import FileNotFoundError
|
from parso._compatibility import FileNotFoundError
|
||||||
from parso.pgen2.pgen import generate_grammar
|
from parso.pgen2.pgen import generate_grammar
|
||||||
@@ -43,8 +44,9 @@ class Grammar(object):
|
|||||||
code.
|
code.
|
||||||
:param start_symbol str: The grammar symbol that you want to parse. Only
|
:param start_symbol str: The grammar symbol that you want to parse. Only
|
||||||
allowed to be used when error_recovery is False.
|
allowed to be used when error_recovery is False.
|
||||||
:param cache bool: A Python grammar file, created with load_grammar.
|
:param cache bool: Keeps a copy of the parser tree in RAM and on disk
|
||||||
You may not specify it. In that case it's the current Python version.
|
if a path is given. Returns the cached trees if the corresponding
|
||||||
|
files on disk have not changed.
|
||||||
:param diff_cache bool: Diffs the cached python module against the new
|
:param diff_cache bool: Diffs the cached python module against the new
|
||||||
code and tries to parse only the parts that have changed. Returns
|
code and tries to parse only the parts that have changed. Returns
|
||||||
the same (changed) module that is found in cache. Using this option
|
the same (changed) module that is found in cache. Using this option
|
||||||
|
|||||||
Reference in New Issue
Block a user