Skip to content

Add call_or_unsupported to remaining operations #198

Closed
@BojanKogoj

Description

@BojanKogoj

Changes needed in https://github.com/RustPython/RustPython/blob/master/vm/src/vm.rs
Similar to what was done in #197, remaining operations (add, div, pow...) need to call call_or_unsupported.

For example replace

self.call_method(&a, "__truediv__", vec![b])

with

self.call_or_unsupported(a, b, "__truediv__", "__rtruediv__", "/")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions