HomePhabricator

rust-python3: compatibility fix for integer conversion

Authored by gracinet.

Description

rust-python3: compatibility fix for integer conversion

On python3, to_py_object() on the usize gives us a PyLong,
whereas it is the generic PyObject already on python2, which fits
the py.None() default value.

Upcasting to PyObject explicitely in all cases solves the issue.

Differential Revision: https://phab.mercurial-scm.org/D6396

Details

Committed
gracinetMay 16 2019, 3:17 PM
Differential Revision
D6396: rust-python3: compatibility fix for integer conversion
Parents
rHGd6c1dd936778: rust: sort dependencies entries in Cargo.toml
Branches
Unknown
Tags
Unknown