On 2012-10-24, at 7:37 AM, inshu chauhan <insidesh...@gmail.com> wrote: > I am having a problem, > > I have a class which return me a list. I want to append another list using > this list outside the Class. > can i do it ? if yes how ? > And can i use Userlist function for this ?? > -- > http://mail.python.org/mailman/listinfo/python-list
If I understand your question correctly, have you read http://docs.python.org/tutorial/datastructures.html? list_a + list_b = list_c list_a.extend(list_b) are two methods to concatenate two lists. UserList is only there for backwards compatibility (see the docs: http://docs.python.org/release/2.3/lib/module-UserList.html) Demian Brecht @demianbrecht http://demianbrecht.github.com -- http://mail.python.org/mailman/listinfo/python-list