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 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) > > > > What exactly are you confused about? This looks like it is part of a class; > > can you post the entire class definition? Also, what is the purpose of the > > program that contains this snippet?
Thank you steven foe the detail explanation i got it now. and thank you Andrew for recommendation I really need that -- https://mail.python.org/mailman/listinfo/python-list