mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 12:51:10 +00:00
Update mod.rs
Update mod.rs Update mod.rs
This commit is contained in:
parent
5b01098605
commit
c6ac087f71
1 changed files with 19 additions and 17 deletions
|
@ -1865,6 +1865,7 @@ impl Context {
|
||||||
self.register_builtin_py_impl("ord", t_ord, Immutable, Private, Some("ord"));
|
self.register_builtin_py_impl("ord", t_ord, Immutable, Private, Some("ord"));
|
||||||
self.register_builtin_py_impl("panic", t_panic, Immutable, Private, Some("quit"));
|
self.register_builtin_py_impl("panic", t_panic, Immutable, Private, Some("quit"));
|
||||||
self.register_builtin_py_impl("pow", t_pow, Immutable, Private, Some("pow"));
|
self.register_builtin_py_impl("pow", t_pow, Immutable, Private, Some("pow"));
|
||||||
|
if !self.cfg.pylyzer_mode {
|
||||||
if cfg!(feature = "debug") {
|
if cfg!(feature = "debug") {
|
||||||
self.register_builtin_py_impl(
|
self.register_builtin_py_impl(
|
||||||
"py",
|
"py",
|
||||||
|
@ -1888,6 +1889,7 @@ impl Context {
|
||||||
Private,
|
Private,
|
||||||
Some("compile"),
|
Some("compile"),
|
||||||
);
|
);
|
||||||
|
}
|
||||||
self.register_builtin_py_impl("quit", t_quit, Immutable, Private, Some("quit"));
|
self.register_builtin_py_impl("quit", t_quit, Immutable, Private, Some("quit"));
|
||||||
self.register_builtin_py_impl("repr", t_repr, Immutable, Private, Some("repr"));
|
self.register_builtin_py_impl("repr", t_repr, Immutable, Private, Some("repr"));
|
||||||
self.register_builtin_py_impl("round", t_round, Immutable, Private, Some("round"));
|
self.register_builtin_py_impl("round", t_round, Immutable, Private, Some("round"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue