lczancanella wrote:
Hi, i am brand new in Python, so sorry if this question is too basic,
but i have tried a lot and dont have success... I have the following
code...

class Funcoes:
    def CifradorDeCesar(mensagem, chave, funcao):
        ...


You've gotten some "interesting" advice.

You want one of:

    class Funcoes:
        @staticmethod
        def CifradorDeCesar(mensagem, chave, funcao):
            ...
or:
    class Funcoes:
        def CifradorDeCesar(self, mensagem, chave, funcao):
            ...
or:
    class Funcoes:
        @class_method
        def CifradorDeCesar(class_, mensagem, chave, funcao):
            ...

--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to