salt.serializers.python module

salt.serializers.python

2016.3.0 新版功能.

Implements a Python serializer (via pprint.format)

salt.serializers.python.serialize(obj, **options)

Serialize Python data to a Python string representation (via pprint.format)

参数:
  • obj -- the data structure to serialize
  • options -- options given to pprint.format