module documentation

This module provides a replacement for ast.parse function.

The only breaking change compared to the standard library ast module is the signature of the parse function.

Class Parser Object to keep track of parsed modules and inferred nodes.
Function parse Parse the python source string into a ast.Module instance.
Class _AstuceModuleVisitor Obviously inspired by astroid rebuilder
Function _set_local Define that the given name is declared in the given statement node.
Variable _default_parser Undocumented
Variable _parse Undocumented
Variable _unparse Undocumented
def parse(source, modname, is_package=False, **kw): (source)

Parse the python source string into a ast.Module instance.

Attention, using this function alters a global parser state, use a Parser instance to parse a set of modules in isolated environments.

Parameters
source:strUndocumented
modname:strUndocumented
is_package:boolUndocumented
**kw:AnyUndocumented
Returns
_typing.ModuleUndocumented
See Also
Parser.parse
def _set_local(self, name, node): (source)

Define that the given name is declared in the given statement node.

See Also

ASTNode.scope

Parameters
name:strThe name that is being defined.
node:ASTNodeThe node that defines the given name (i.e ast.Name objects).
_default_parser = (source)

Undocumented

_parse = (source)

Undocumented

_unparse = (source)

Undocumented