[Tutor] R: Re: Re: Class learning

jarod_v6 at libero.it jarod_v6 at libero.it
Fri Jan 23 11:26:07 CET 2015


This is the all code: http://pastebin.com/nYGEiXY4
I don't know well which i meas . I suppose it is the name  of the class (self.
__name__).  So  the  name  it is present.
it is correct?
thanks for the patience!
M.



>----Messaggio originale----
>Da: danny.yoo at gmail.com
>Data: 23/01/2015 11.08
>A: "jarod_v6 at libero.it"<jarod_v6 at libero.it>
>Cc: "Python Tutor Mailing List"<tutor at python.org>
>Ogg: Re: Re: [Tutor] Class learning
>
>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?
>> @property
>>         def steps(self):
>>                 return [
>>
>>                         self.trimmomatic,
>>                         self.merge_trimmomatic_stats,
>>                         self.star,
>>                         self.picard_sort_sam,
>>                         self.rnaseqc,
>>                         self.wiggle,
>>                         self.cufflinks,
>>                         self.gq_seq_utils_exploratory_analysis_rnaseq
>>
>>                 ]
>>
>
>
>
>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:
>
>    def show(self):
>        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 mailing list