Appending a list using list obtained from a class
Demian Brecht
demianbrecht at gmail.com
Wed Oct 24 10:41:51 EDT 2012
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
More information about the Python-list
mailing list