mirror of
https://github.com/erg-lang/erg.git
synced 2025-07-12 23:55:20 +00:00
9 lines
299 B
Python
9 lines
299 B
Python
'''
|
|
Evaluate a string as Python code.
|
|
'''
|
|
.pyeval: (code: Str, globals := {Str: Obj}, locals := {Str: Obj}) -> Obj
|
|
'''
|
|
Execute the procedure circumventing effect analysis.
|
|
If you want to use side effects locally in a function, use the `isolate` function instead.
|
|
'''
|
|
.perform: |T|(p!: () => T) -> T
|