[Tutor] Class learning
danny.yoo at gmail.com
Fri Jan 23 11:08:50 CET 2015
On Fri, Jan 23, 2015 at 12:37 AM, jarod_v6 at libero.it <jarod_v6 at libero.it> wrote:
> Thanks for the help and patience!
> It is a function on the class so I suppose for read that function list I
> need self.steps Where I'm wrong?
> def steps(self):
> return [
Do each of these elements in this list support the operations you're
performing on any single step?
That is, the code that you have here:
ftp="\n".join([str(idx + 1) + "- " + step.__name__ for idx,
step in enumerate(self.steps)])
seems to assume that every step must have a '__name__' property.
But do all of the steps that you've put in there support '__name__'?
More information about the Tutor