Handbook
Glossary
>py ( obj -- py-obj )
Python binding
Next:
py> ( py-obj -- obj )
Vocabulary
python
Inputs
obj
a factor object
Outputs
py-obj
a python object
Word description
Converts a factor objects to its most fitting python representation.
Examples
USING: arrays prettyprint python sequences ; 10 <iota> >array >py py> .
{ 0 1 2 3 4 5 6 7 8 9 }
See also
py>
Definition
IN:
python
GENERIC:
>py
( obj -- py-obj )
Methods
USING:
arrays
python
sequences
;
M:
array
>py
[
>py
]
map
array>py-tuple
;
USING:
math
math.parser
python
python.errors
python.ffi
;
M:
bignum
>py
number>string
f
10
PyLong_FromString
check-new-ref
;
USING:
byte-arrays
kernel
python
python.errors
python.ffi
sequences
;
M:
byte-array
>py
dup
length
PyBytes_FromStringAndSize
check-new-ref
;
USING:
kernel
python
python.objects
;
M:
f
>py
drop
<none>
;
USING:
math
python
python.errors
python.ffi
;
M:
fixnum
>py
PyLong_FromLong
check-new-ref
;
USING:
math
python
python.errors
python.ffi
;
M:
float
>py
PyFloat_FromDouble
check-new-ref
;
USING:
assocs
hashtables
kernel
python
;
M:
hashtable
>py
[
[
>py
]
bi@
]
assoc-map
assoc>py-dict
;
USING:
python
python.errors
python.ffi
strings
;
M:
string
>py
PyUnicode_FromString
check-new-ref
;
USING:
python
sequences
vectors
;
M:
vector
>py
[
>py
]
map
vector>py-list
;