On Mon, Jan 26, 2015 at 11:48:52AM +0100, jarod...@libero.it wrote:
> 
> 
> Dear All,
> What is the best way to loop on methos on a class?

I do not understand the question. Can you explain in more detail?


> class Rna():
>     def trim():
>         ...
>     def align():
>         ...

Both methods need a "self" parameter:

    def trim(self):
        ...
    def align(self):
        ...


> ena = Rna()
> ena.trim()
> ena.aling()

ena.align()



-- 
Steve
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to