RE: Appending a list using list obtained from a class

2012-10-25 Thread Prasad, Ramit
Demian Brecht wrote: On 2012-10-24, at 8:00 AM, inshu chauhan insidesh...@gmail.com wrote: Yes, a Class method returns a list. I am trying to append this in main() to make another list. But the list i am getting after appending i showing addresses like this '__main__.Point object at

Appending a list using list obtained from a class

2012-10-24 Thread inshu chauhan
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

Re: Appending a list using list obtained from a class

2012-10-24 Thread Demian Brecht
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 ?? --

Re: Appending a list using list obtained from a class

2012-10-24 Thread inshu chauhan
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

Re: Appending a list using list obtained from a class

2012-10-24 Thread Demian Brecht
On 2012-10-24, at 7:45 AM, inshu chauhan insidesh...@gmail.com wrote: the class is returning the list , and i want to append the list outside the class... main problem is this What do you mean the class is returning the list? Do you mean that a class stores a list internally and you want to

Re: Appending a list using list obtained from a class

2012-10-24 Thread inshu chauhan
the class is returning the list , and i want to append the list outside the class... main problem is this What do you mean the class is returning the list? Do you mean that a class stores a list internally and you want to be able to mutate that list? Do you mean that you have a class method

Re: Appending a list using list obtained from a class

2012-10-24 Thread Demian Brecht
On 2012-10-24, at 8:00 AM, inshu chauhan insidesh...@gmail.com wrote: Yes, a Class method returns a list. I am trying to append this in main() to make another list. But the list i am getting after appending i showing addresses like this '__main__.Point object at 0x0254FAB0' but if i print