Skip to content

Commit ff6ef14

Browse files
committed
make ! convention more correct
1 parent 6dc42ab commit ff6ef14

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/clojure_python/core.clj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,21 @@
1313
*interp*)
1414

1515
(defn init
16-
"Establish a global python interpreter. it is intended to only be called
17-
once. Alternatively, only use with-interpreter."
16+
"Establish a global python interpreter.
17+
The init function is only usefully called once.
18+
Alternatively, only use with-interpreter."
1819
[{:keys [libpaths] :as options}]
1920
(defonce ^:dynamic
2021
^{:doc "root binding serves as global python interpreter"}
2122
*interp*
2223
(org.python.util.PythonInterpreter.))
23-
(append-paths! libpaths))
24+
(append-paths libpaths))
2425

2526
(defmacro with-interpreter
2627
"Dynamically bind a new python interpreter for the calling context."
2728
[{:keys [libpaths] :as options} & body]
2829
`(binding [*interp* (org.python.util.PythonInterpreter.)]
29-
(append-paths! ~libpaths)
30+
(append-paths ~libpaths)
3031
~@body))
3132

3233
(defmacro py-import

0 commit comments

Comments
 (0)