Re: [Tutor] Problem on select esecution of object in a class

2015-08-05 Thread Peter Otten
jarod_v6--- via Tutor wrote: > I have a class with many objects and I want to select using opt parse > some function id = options.step > ena = Rnaseq(options.configura, options.rst, options.outdir) > now = datetime.datetime.now() > ena.show() > diz = {} > f

Re: [Tutor] Problem on select esecution of object in a class

2015-08-05 Thread Alan Gauld
On 05/08/15 17:04, jarod_v6--- via Tutor wrote: for i in "ena."+"".join(diz[id])+"()": print i.command Here you are creating a string and then iterating over the string one character at a time. But the characters do not have a command attribute. > 3