]> gitweb.factorcode.org Git - factor.git/commitdiff
python: py-list-call shouldn't use a callback
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 19 Jan 2022 19:53:12 +0000 (11:53 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 19 Jan 2022 19:53:12 +0000 (11:53 -0800)
extra/python/python-tests.factor

index d92af316c88993913c09629c310d4693c1d46ba0..5039450a4734f95875639178e2f09dec0ccac462 100644 (file)
@@ -184,11 +184,8 @@ IN: python
 : py-list ( -- alien )
     "builtins" "list" py-import-from ;
 
-: py-list-call ( alien-cb -- seq )
-    [
-        py-list swap 1array array>py-tuple f
-        call-object-full
-    ] with-callback py> ;
+: py-list-call ( alien -- seq )
+    py-list swap 1array array>py-tuple f call-object-full py> ;
 
 : py-map-call ( alien-cb -- seq )
     [