clj-python / libpython-clj

Python bindings for Clojure
Eclipse Public License 2.0
1.05k stars 68 forks source link

from-import does not support "string" #235

Open behrica opened 1 year ago

behrica commented 1 year ago

This syntax cannot be used in libpython-clj,

from yellowbrick.contrib.wrapper import CLASSIFIER

when classifier is a String.

(py/from-import yellowbrick.contrib.wrapper CLASSIFIER)

fails with

 Unhandled java.lang.IllegalArgumentException
   No implementation of method: :get-attr of protocol:
   #'libpython-clj2.python.protocols/PPyAttr found for class: java.lang.String

          core_deftype.clj:  583  clojure.core/-cache-protocol-fn