8000 How could we get namespace values from thriftpy2.parser · Issue #294 · Thriftpy/thriftpy2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
How could we get namespace values from thriftpy2.parser #294
Open
@truebit

Description

@truebit

I saw two methods in parser.py concerning namespace:

def p_namespace(p):
    '''namespace : NAMESPACE namespace_scope IDENTIFIER'''
    # namespace is useless in thriftpy2
    # if p[2] == 'py' or p[2] == '*':
    #     setattr(thrift_stack[-1], '__name__', p[3])


def p_namespace_scope(p):
    '''namespace_scope : '*'
                       | IDENTIFIER'''
    p[0] = p[1]

But I cannot find namespace attributes after parsing the IDL file using from thriftpy2.parser.parser import parse.

Sometimes we need the name 585F space to locate the same method from different IDL。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0