Return type: | Node instance |
---|---|
Parameters: | model (str) – model used to builf the actions tree |
Parse the model and build a tree according to it
Return type: | Node instance |
---|---|
Parameters: |
|
This function is the same as build() except that it make an SHA512 checksum of the model, and compare it with the one stored in the file named filename. If the file exists and the checksum stored in it is the same, it loads and return the previously built tree. Else, it build the tree, creates the file filename and store in it the checksum and the pickled tree.
Return type: | str |
---|---|
Parameters: |
|
returns a str containing all the str in iterable along with their size
Return type: | list |
---|---|
Parameters: |
|
return all the original str be sure to use the same size_num_bytes as the one you used in data_encode()
Return type: | str |
---|
same as data_encode(), except that iterable can be populated by any “pickleable” object. Uses pickle.dumps( obj ,2) to serialize objects.
Return type: | list |
---|
recovers the list of objects serialized by p_data_decode()