aboutsummaryrefslogtreecommitdiff
path: root/lux-python/source/program.lux
diff options
context:
space:
mode:
Diffstat (limited to 'lux-python/source/program.lux')
-rw-r--r--lux-python/source/program.lux8
1 files changed, 4 insertions, 4 deletions
diff --git a/lux-python/source/program.lux b/lux-python/source/program.lux
index 4218cf248..d16446ac1 100644
--- a/lux-python/source/program.lux
+++ b/lux-python/source/program.lux
@@ -208,7 +208,7 @@
(def: (read host_object)
Translator
- (`` (<| (~~ (template [<class> <processing>]
+ (`` (<| (~~ (with_template [<class> <processing>]
[(case (ffi.as <class> (as <class> host_object))
{.#Some host_object}
{try.#Success (`` (|> host_object (~~ (template.spliced <processing>))))}
@@ -230,7 +230,7 @@
[org/python/core/PyArray [org/python/core/PyArray::getArray]]
[[java/lang/Object] [(|>)]]
))
- (~~ (template [<class> <processing>]
+ (~~ (with_template [<class> <processing>]
[(case (ffi.as <class> host_object)
{.#Some host_object}
(<| <processing> (as org/python/core/PyObject) host_object)
@@ -273,7 +273,7 @@
(pattern (list))
(as org/python/core/PyObject self)
- (~~ (template [<arity>]
+ (~~ (with_template [<arity>]
[(pattern (list (~~ (static.literals code.local (inputs/? <arity>)))))
(to_host ((as (~~ (static.literal function.identity (function/? <arity>))) it)
(~~ (static.literals code.local (inputs/? <arity>)))))]
@@ -334,7 +334,7 @@
(def: (to_host it)
(-> Any org/python/core/PyObject)
- (`` (<| (~~ (template [<jvm> <python>]
+ (`` (<| (~~ (with_template [<jvm> <python>]
[(case (ffi.as <jvm> (as java/lang/Object it))
{.#Some it}
(as org/python/core/PyObject