Open
Description
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。