aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/meta/target/python.lux
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib/source/library/lux/meta/target/python.lux')
-rw-r--r--stdlib/source/library/lux/meta/target/python.lux10
1 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/source/library/lux/meta/target/python.lux b/stdlib/source/library/lux/meta/target/python.lux
index b3c874f26..93014c3e4 100644
--- a/stdlib/source/library/lux/meta/target/python.lux
+++ b/stdlib/source/library/lux/meta/target/python.lux
@@ -1,6 +1,6 @@
(.require
[library
- [lux (.except Location Code not or and list if int comment exec try the is def)
+ [lux (.except Location Code not or and list if int comment exec try the is def when)
["[0]" ffi]
[abstract
[equivalence (.only Equivalence)]
@@ -132,7 +132,7 @@
(.def .public bool
(-> Bit Literal)
- (|>> (pipe.case
+ (|>> (pipe.when
#0 "False"
#1 "True")
abstraction))
@@ -370,7 +370,7 @@
(abstraction
(format "while " (representation test) ":"
(..nested (representation body!))
- (case else!
+ (.when else!
{.#Some else!}
(format \n+ "else:"
(..nested (representation else!)))
@@ -423,7 +423,7 @@
(.def .public (exec globals code)
(-> (Maybe (Expression Any)) (Expression Any) (Statement Any))
- (let [extra (case globals
+ (let [extra (.when globals
{.#Some globals}
(.list globals)
@@ -453,7 +453,7 @@
(.def arity_inputs
(syntax (_ [arity <code>.nat])
- (in (case arity
+ (in (.when arity
0 (.list)
_ (|> (-- arity)
(enum.range n.enum 0)