]> gitweb.factorcode.org Git - factor.git/commitdiff
python.objects: use flags{ } for flags.
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 31 Oct 2014 18:35:15 +0000 (11:35 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 31 Oct 2014 18:35:15 +0000 (11:35 -0700)
extra/python/objects/objects.factor

index d685bcfb4f7d72928634e21368200158ede68fd4..e069cbbb87505b55149ab31716637868ebb7a6f1 100644 (file)
@@ -1,6 +1,6 @@
-USING: accessors alien.c-types alien.data alien.libraries classes.struct
-io.encodings.ascii io.encodings.utf8 kernel libc math python.errors
-python.ffi ;
+USING: accessors alien.data alien.libraries classes.struct
+io.encodings.ascii io.encodings.utf8 kernel libc literals
+python.errors python.ffi ;
 IN: python.objects
 
 ! The None object
@@ -74,7 +74,7 @@ IN: python.objects
     swap [ utf8 malloc-string &free >>ml_doc ] when*
     swap ascii malloc-string &free >>ml_name
     swap >>ml_meth
-    METH_VARARGS METH_KEYWORDS bitor >>ml_flags ;
+    flags{ METH_VARARGS METH_KEYWORDS } >>ml_flags ;
 
 : <py-cfunction> ( alien -- cfunction )
     "cfunction" f <PyMethodDef> f f