# Example objects for pickling.

from persistent import Persistent

def print_dict(d):
    d = sorted(d.items())
    print('{%s}' % (', '.join(
        [('%r: %r' % (k, v)) for (k, v) in d]
        )))

def cmpattrs(self, other, *attrs):