"Jose Ignacio Gisbert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | I have one doubt, in my applciation I have a method (Method1) which has | other method (Method2) inside of it.
You have a function inside a function. In Python, methods are functions bound to classes. | Method1 | Lista=a,b,c,d. That makes a tuple, not a list. Do lista = [a,b,c,d] to make a list that you can modify inside an inner function using item or slice assignment or modify-in-place methods | Lb=listbox | Method2 | Lista=e,f,g.. -->error! lista[:] = [e,f,g] will replace the contents of lista Good luck. tjr -- http://mail.python.org/mailman/listinfo/python-list