yes this i know very well.. but the problem is not so simple... the class is returning the list , and i want to append the list outside the class... main problem is this
I know how to append a list with a list nd stuff.. On Wed, Oct 24, 2012 at 4:41 PM, Demian Brecht <demianbre...@gmail.com>wrote: > > 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