mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
Add Iterable
This commit is contained in:
parent
bf2d654054
commit
b879788d2a
3 changed files with 53 additions and 3 deletions
|
@ -223,7 +223,8 @@ fn convert_to_python_attr(class: &str, uniq_obj_name: Option<&str>, name: Str) -
|
|||
("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"),
|
||||
(_, _, "read!") => Str::ever("read"),
|
||||
(_, _, "write!") => Str::ever("write"),
|
||||
(_, _, "__new__") => Str::ever("__call__"),
|
||||
(_, _, "to_str") => Str::ever("__str__"),
|
||||
(_, _, "__Tuple_getitem__") => Str::ever("__getitem__"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue