Appending a list using list obtained from a class
inshu chauhan
insideshoes at gmail.com
Wed Oct 24 10:45:04 EDT 2012
More information about the Python-list mailing list
Wed Oct 24 10:45:04 EDT 2012
- Previous message (by thread): Appending a list using list obtained from a class
- Next message (by thread): Appending a list using list obtained from a class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <demianbrecht at gmail.com>wrote: > > On 2012-10-24, at 7:37 AM, inshu chauhan <insideshoes at 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 > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-list/attachments/20121024/c3e86a0a/attachment.html>
- Previous message (by thread): Appending a list using list obtained from a class
- Next message (by thread): Appending a list using list obtained from a class
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list