Skip to content

Commit 274ce14

Browse files
committed
Fixed keyword argument syntax for python function declaration. Fixed another issue with the inner loop.
1 parent 52a7c2d commit 274ce14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/clojure_python/core.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,19 +90,19 @@
9090
(if (seq funcs)
9191
(dorun (map #(import-fn module %) funcs)))))
9292

93-
(defn python [name [& {:keys
93+
(defn python [name & {:keys
9494
[pre-properties
9595
post-properties
9696
argv
9797
sys-path
98-
modules]}]]
98+
modules]}]
9999
(do
100100
(PythonInterpreter/initialize pre-properties post-properties argv)
101101
(let [interp (PythonInterpreter.)]
102102
(if (seq sys-path)
103103
(init interp sys-path))
104104
(loop [mods modules]
105-
(let [[m args] (first modules) k (:funcs args) o (:objs args)]
105+
(let [[m args] (first mods) k (:funcs args) o (:objs args)]
106106
(python-mod interp m :funcs k :objs o)
107107
(recur (rest mods))))
108108
interp)))

0 commit comments

Comments
 (0)