Re: need some basic help

2015-12-24 Thread Terry Reedy
On 12/24/2015 2:33 PM, Qurrat ul Ainy wrote: what is snippet ?? Search 'snippet definition' on the web with your browser. It comes from 'snip', so something 'snipped'. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: need some basic help

2015-12-24 Thread Qurrat ul Ainy
On Thursday, December 24, 2015 at 8:33:59 PM UTC+1, Qurrat ul Ainy wrote: > what is snippet ?? > > > > On Thursday, December 24, 2015 at 5:25:18 AM UTC+1, Benjamin Kulas wrote: > > On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote: > > > Hello, > > > > > > Can someone pl

Re: need some basic help

2015-12-24 Thread Qurrat ul Ainy
what is snippet ?? On Thursday, December 24, 2015 at 5:25:18 AM UTC+1, Benjamin Kulas wrote: > On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote: > > Hello, > > > > Can someone please explain this code below. I am new at Python . > > Thanks > > > > > > def receive_mes

Re: need some basic help

2015-12-24 Thread Andrew Farrell
This code snippet is a method on a class. What is a method? This chapter of the book Think Python does a good job of explaining it. Without understanding this foundation, it isn't possible to really answer your question, so definit

Re: need some basic help

2015-12-24 Thread Steven D'Aprano
On Thu, 24 Dec 2015 12:53 pm, Qurrat ul Ainy wrote: > Hello, > > Can someone please explain this code below. I am new at Python . > Thanks > > > def receive_messages(self, msgs, time): > for msg in msgs: > msg.set_recv_time(time) > self.msgs_received.extend(msgs) This is

Re: need some basic help

2015-12-23 Thread Benjamin Kulas
On Wednesday, December 23, 2015 at 7:53:43 PM UTC-6, Qurrat ul Ainy wrote: > Hello, > > Can someone please explain this code below. I am new at Python . > Thanks > > > def receive_messages(self, msgs, time): > for msg in msgs: > msg.set_recv_time(time) > self.msgs_received.