This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
'''Saving and loading Traits in a JSON file using the json Python module. | |
This example shows how to save Traits of an object with nested objects, and load | |
these Traits. In addition, we want to ignore some given nested objects in the | |
saving/loading process. | |
Based on a previous example by Pierre Haessig: |