I tried to create 2 instances for s1 and s2, but the memory get written twice. I get:
Out of the World
Book: Decision Procedure
=========================================
Out of the World
Book: Decision Procedure
instead of
Out of the World
=========================================
Book: Decision Procedure
How is this so?
I created a class as following:
class domain_monitor:
name = '';
tasks = [];
I started populating the instances as following:
s1 = domain_monitor();
s1.name = "s1";
s1.tasks.append("Out of the World");
s2 = domain_monitor();
s2.name = "s2";
s2.tasks.append("Book: Decision Procedure");
I print the output as following:
for v in s1.tasks: #
print v
print " ========================================= "
for v in s2.tasks: #
print v