# This is the testrecuset module. It contains code that tests the output and input of
# YAML with recursive sets. We also look at tuples. 

import yaml;


class C: 
    pass;

c = C()
c.t = c;
s = set([c])
c.s = s

print "We print the object s"
print s;
D = yaml.dump(s);
print D;
E = yaml.load(D);
print E;


print "We print the class instance c."
print c;
D = yaml.dump(c);
print D;
E = yaml.load(D); #Not constructing c again??
print E;


#print "CCC"

#Q = "--- &A !!set { *A }"
#R = yaml.load(Q);
#print R;


