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
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
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(
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
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
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
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
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 = '-'
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
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,
10 matches
Mail list logo