Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Dave Angel
ApathyBear Wrote in message: > > On Thursday, February 20, 2014 12:54:54 AM UTC-8, Chris Angelico wrote: > >>Calling a class will create a new instance of it. [1] What you do with >>it afterwards is separate. > > Okay. So what you are saying is that > return(Athlete(temp1.pop(0),temp1.pop(0

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread ApathyBear
Thank you Chris. And thank you to everyone else. This has tremendously helped me. This google group is definitely the best place for python questions/discussion. PS: Chris, I will be looking at that tutorial now. -- https://mail.python.org/mailman/listinfo/python-list

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 8:22 PM, ApathyBear wrote: > On Thursday, February 20, 2014 12:54:54 AM UTC-8, Chris Angelico wrote: > >>Calling a class will create a new instance of it. [1] What you do with >>it afterwards is separate. > > Okay. So what you are saying is that > return(Athlete(temp1.pop(

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread ApathyBear
On Thursday, February 20, 2014 12:54:54 AM UTC-8, Chris Angelico wrote: >Calling a class will create a new instance of it. [1] What you do with >it afterwards is separate. Okay. So what you are saying is that return(Athlete(temp1.pop(0),temp1.pop(0), temp1)) IS in fact creating an instance of

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Gary Herron
On 02/20/2014 12:26 AM, ApathyBear wrote: Thanks for pointing out the missing parenthesis, it makes sense now why there was an error. I suppose my question now is (and forgive my ignorance about classes, this is my first time learning them) why is it calling Athlete with some arguments? In or

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 7:26 PM, ApathyBear wrote: > Thanks for pointing out the missing parenthesis, it makes sense now why there > was an error. > > I suppose my question now is (and forgive my ignorance about classes, this is > my first time learning them) why is it calling Athlete with some

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread ApathyBear
Thanks for pointing out the missing parenthesis, it makes sense now why there was an error. I suppose my question now is (and forgive my ignorance about classes, this is my first time learning them) why is it calling Athlete with some arguments? In order to make a class object, don't you need t

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Vincent Vande Vyvre
Le 20/02/2014 08:32, ApathyBear a écrit : I have two questions that come along with the following code: -- from __future__ import print_function def sanitize(time): if '-' in time: splitter = '-'

Re: Cannot figure out line of code, also not understanding error

2014-02-20 Thread Chris Angelico
On Thu, Feb 20, 2014 at 6:32 PM, ApathyBear wrote: > 1. What does this line of code mean: > return(Athlete(temp1.pop(0),temp1.pop(0), temp1) > > Is it making an Athlete class? if you can give examples to help explain what > this is doing that would be helpful. It's supposed to be calling Athlete

Cannot figure out line of code, also not understanding error

2014-02-19 Thread ApathyBear
I have two questions that come along with the following code: -- from __future__ import print_function def sanitize(time): if '-' in time: splitter = '-' (mins,secs) = time.split(splitter,