Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100825

Re: need some basic help

Newsgroups comp.lang.python
Date 2015-12-24 11:33 -0800
References <90cc0071-7c78-4974-88ad-60ff89649c95@googlegroups.com> <1dc1e09d-f1cc-4cf6-8535-f61ac2af9c43@googlegroups.com>
Message-ID <b4eaa827-0e57-458c-8ee0-99508ead1cf7@googlegroups.com> (permalink)
Subject Re: need some basic help
From Qurrat ul Ainy <qurratul.ainy1@gmail.com>

Show all headers | View raw


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?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

need some basic help Qurrat ul Ainy <qurratul.ainy1@gmail.com> - 2015-12-23 17:53 -0800
  Re: need some basic help Benjamin Kulas <bkulbismuth@gmail.com> - 2015-12-23 20:24 -0800
    Re: need some basic help Qurrat ul Ainy <qurratul.ainy1@gmail.com> - 2015-12-24 11:33 -0800
      Re: need some basic help Qurrat ul Ainy <qurratul.ainy1@gmail.com> - 2015-12-24 11:38 -0800
      Re: need some basic help Terry Reedy <tjreedy@udel.edu> - 2015-12-24 17:14 -0500
  Re: need some basic help Steven D'Aprano <steve@pearwood.info> - 2015-12-24 22:58 +1100
  Re: need some basic help Andrew Farrell <armorsmith42@gmail.com> - 2015-12-23 21:58 -0600

csiph-web