mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
Fix reverse method for calling div.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user