mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-27 13:22:28 +08:00
More docstrings.
This commit is contained in:
@@ -29,8 +29,10 @@ __version__ = '0.0.5'
|
||||
|
||||
def parse(code=None, **kwargs):
|
||||
"""
|
||||
A utility function to parse Python with the current Python version. Params
|
||||
are documented in ``Grammar.parse``.
|
||||
A utility function to avoid loading grammars.
|
||||
Params are documented in :py:meth:`parso.Grammar.parse`
|
||||
|
||||
:param string version: The version used by :py:func:`parso.Grammar.load_grammar`.
|
||||
"""
|
||||
version = kwargs.pop('version', None)
|
||||
grammar = load_grammar(version=version)
|
||||
|
||||
Reference in New Issue
Block a user