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.
hg-reviewers |
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.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |