I am trying to change values in a file. The following code does not seem to find the attribute.
def anonymize(obj, attr):
try:
obj.attr = 'Anonymize'
except AttributeError:
pass
for fname in os.listdir(os.curdir):
plan=ReadFile(fname)
anonymize(plan, 'Name')
It seems to be the obj.attr in the function. Can someone explain what I am
doing wrong?
Bryan
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
