Loading

->PICKLE


platform
Since v1.0.7
Available on all platforms
See also

The ->PICKLE function converts the object on top of the stack to a Python object and serializes it using Pickle protocol version 2. The conversion table used is as follow:

WarpScriptPython
NULLNone
BOOLEANbool
BYTESbytearray
STRINGstr/unicode
DOUBLEfloat
LONGint
LISTlist
MAPdict
SETset
GTSdict
ENCODERdict

Other types are unsupported.

Python example with ->PICKLE ->HEX output:

>>> s="80025d71002858060000005049434b4c4571015806000000535452494e4771025d7103284b0547400921fb54442d1865652e"
>>> import pickle
>>> pickle.loads(s.decode("hex"))
[u'PICKLE', u'STRING', [5, 3.141592653589793]]

Signature

Examples

[ 'PICKLE' 'STRING' [ 5 PI ] ] ->PICKLE ->HEX //the ouptut could be passed to a python script, see python example.