Expose _StructSchema's raw node

This commit is contained in:
Andy Lutomirski
2013-08-28 14:46:53 -07:00
parent 79ae83a6cb
commit 2fe61781f5
2 changed files with 5 additions and 1 deletions

View File

@@ -380,6 +380,11 @@ cdef class _StructSchema:
for i in xrange(nfields))
return self.__fieldnames
property node:
"""The raw schema node"""
def __get__(self):
return _DynamicStructReader()._init(self.thisptr.getProto(), None)
cdef class _ParsedSchema:
cdef C_ParsedSchema thisptr
cdef _init(self, C_ParsedSchema other):