mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 12:51:10 +00:00
bug fixes
This commit is contained in:
parent
9fc1376a9f
commit
4968076541
6 changed files with 13 additions and 7 deletions
|
@ -217,7 +217,7 @@ fn is_fake_method(class: &str, name: &str) -> bool {
|
|||
fn convert_to_python_attr(class: &str, uniq_obj_name: Option<&str>, name: Str) -> Str {
|
||||
match (class, uniq_obj_name, &name[..]) {
|
||||
("Array!", _, "push!") => Str::ever("append"),
|
||||
("Set!", _, "add") => Str::ever("add"),
|
||||
("Set!", _, "add!") => Str::ever("add"),
|
||||
("Complex" | "Float" | "Ratio" | "Int" | "Nat" | "Bool", _, "Real") => Str::ever("real"),
|
||||
("Complex" | "Float" | "Ratio" | "Int" | "Nat" | "Bool", _, "Imag") => Str::ever("imag"),
|
||||
("File!", _, "read!") => Str::ever("read"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue