We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d1f4b1 commit d9ebeefCopy full SHA for d9ebeef
1 file changed
src/lib.rs
@@ -179,7 +179,11 @@ fn decode_dag_cbor_to_pyobject<R: Read + Seek>(
179
prev_key = Some(key);
180
181
let value_py = decode_dag_cbor_to_pyobject(py, r, depth + 1)?;
182
- dict.set_item(key_py, value_py)?;
+ // dict.set_item(key_py, value_py)?;
183
+ // TODO(MarshalX): add error check
184
+ unsafe {
185
+ ffi::PyDict_SetItem(dict.as_ptr(), key_py.as_ptr(), value_py.as_ptr());
186
+ }
187
}
188
189
dict.into_pyobject(py)?.into()
0 commit comments