Dear all,
I am trying to create x attributes in a class, to the effect of:
class classic:
def __init__(self,text):
r=range(text.count('TI -'))
for l in r:
self.l=None
Unfortunately I can't iterate through for some reason. I only get self.l, not, for instance self.1 to self.107
How do I do this? Is this just not done? Basically I'm taking about 100 sets of abstracts from a text file and want to parse by occurence then further into title, id number etc.:
so I'd get attributes in the end like:
self.1.abstract
self.1.title
self.3.id
and so forth.
Little help?