quot>py-callback ( quot: ( args kw -- ret ) -- alien )
Python binding

Prev:py> ( py-obj -- obj )
Next:python-error ( type message traceback -- * )


Vocabulary
python

Inputs
quota quotation with stack effect ( args kw -- ret )


Outputs
alienan alien


Word description
Creates a python-compatible alien callback from a quotation.

Examples
This is how you create a callback which returns the double of its first positional parameter:
USING: python ;
: double-fun ( -- alien ) [ drop first 2 * ] quot>py-callback ;


Definition