On 20 dic, 21:09, Pyenos <[EMAIL PROTECTED]> wrote:
> class pid:
>     "pid"
>     def add(original_pid,toadd):
>         "add pid"
>         original_pid.append(toadd)
>         return original_pid
For a method, you have to include an *explicit* first parameter
(usually called "self") that refers to the instance on which you call
the method (like "this" on other languages, but you have to be explicit
in Python).
Read the Python tutorial: http://docs.python.org/tut/

-- 
Gabriel Genellina

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to