Support ordered dictionnary

Now possible to create ordered dictionnary using 'to_dict' function with
the ordered parameter.
This commit is contained in:
jfgauvin
2014-10-27 10:59:07 -04:00
parent f9fea43828
commit 4f706c8b05
3 changed files with 31 additions and 24 deletions

View File

@@ -117,7 +117,7 @@ cdef class _DynamicListBuilder:
cdef to_python_reader(C_DynamicValue.Reader self, object parent)
cdef to_python_builder(C_DynamicValue.Builder self, object parent)
cdef _to_dict(msg, bint verbose)
cdef _to_dict(msg, bint verbose, bint ordered)
cdef _from_list(_DynamicListBuilder msg, list d)
cdef _setDynamicFieldWithField(DynamicStruct_Builder thisptr, _StructSchemaField field, value, parent)
cdef _setDynamicFieldStatic(DynamicStruct_Builder thisptr, field, value, parent)