Closed jjtolton closed 3 years ago
Currently, the py. macro (and therefore the py.. macro) will break in go and go-loops.
py.
py..
(ns libpython-clj.sidecar (:require [libpython-clj2.require :refer [require-python import-python] :reload true] [libpython-clj2.python :as py :refer [py.] :reload true] [libpython-clj2.metadata :as metadata :reload true] [clojure.core.async :as a :refer [go go-loop]])) (import-python) (require-python '[os.path :as os-path :bind-ns ] ) (go (println (os-path/split "/hello"))) ;; works (go (println (py. os-path "split" "/hello"))) ;; works (go (println (py/py. os-path split "/hello"))) ;; breaks (for [path ["/hello"] :let [path (py. os-path split "/hello")]] path) ;; works
Using a string for the method name works.
Currently, the
py.
macro (and therefore thepy..
macro) will break in go and go-loops.Using a string for the method name works.