Fix reverse method for calling div.

This commit is contained in:
Yu Wu
2019-02-03 07:02:36 -08:00
parent 384ae474de
commit 38ee8aeed6

View File

@@ -557,7 +557,7 @@ impl VirtualMachine {
}
pub fn _div(&mut self, a: PyObjectRef, b: PyObjectRef) -> PyResult {
self.call_or_unsupported(a, b, "__truediv__", "__truediv__", "/")
self.call_or_unsupported(a, b, "__truediv__", "__rtruediv__", "/")
}
pub fn _pow(&mut self, a: PyObjectRef, b: PyObjectRef) -> PyResult {