Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(0)  |  Derive(6)  |  Import(0)

src/p/y/Py2C-HEAD/tests/test_syntax_tree.py   Py2C(Download)
class BasicNode(syntax_tree.AST):
    """Basic node
    """
    _fields = [
        ('f1', int, syntax_tree.NEEDED),
    ]
 
 
class BasicNodeCopy(syntax_tree.AST):
class AllIntModifersNode(syntax_tree.AST):
    """Node with all modifiers
    """
    _fields = [
        ('f1', int, syntax_tree.NEEDED),
class ParentNode(syntax_tree.AST):
    """Node with another node as child
    """
    _fields = [
        ('child', BasicNode, syntax_tree.NEEDED),
    ]
 
 
class InvalidModifierNode(syntax_tree.AST):