You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(define-syntax py:from
(syntax-rules (import as)
[(_ where import name)
(py:run-simple-string (format "from ~a import ~a" where name))]
[(_ where import name as custom-name)
(py:run-simple-string (format "from ~a import ~a as ~a" where name custom-name))]))
(py:from "requests" import "get" as "GET")
(py:run-simple-string "print(type(GET))")
The text was updated successfully, but these errors were encountered:
https://github.com/guenchi/fli/blob/bee3468b366665067cc947609450208d4a42f0e2/pycall.sc#L87-L90
I tested, it woks. This is example code:
The text was updated successfully, but these errors were encountered: