[Tutor] recursive problem

Roelof Wobben rwobben at hotmail.com
Sat Sep 11 22:13:51 CEST 2010




----------------------------------------
> From: rwobben at hotmail.com
> To: steve at pearwood.info
> Subject: RE: [Tutor] recursive problem
> Date: Sat, 11 Sep 2010 18:39:31 +0000
>
>
>
>
> ----------------------------------------
>> From: steve at pearwood.info
>> To: tutor at python.org
>> Date: Sun, 12 Sep 2010 04:19:57 +1000
>> Subject: Re: [Tutor] recursive problem
>>
>> On Sun, 12 Sep 2010 04:09:20 am Roelof Wobben wrote:
>>
>>>> On Sun, 12 Sep 2010 03:40:38 am Roelof Wobben wrote:
>>>>> But why is type checking then wrong.
>>>>> Lets says I want a module who must work on strings, tuple and
>>>>> lists.
>>>>
>>>> It's not *always* wrong, but let me ask you... why do you want to
>>>> *limit* the function to work on ONLY strings, tuples and lists?
>>
>>> Because I follow this book "Thinking like a computer scientist" and I
>>> have only read the chapters about strings. lists and tuples.
>>
>> Good answer!
>>
>> Don't worry about all the complications. Learn to walk first, then learn
>> to run.
>>
>>
>>
>> --
>> Steven D'Aprano
>> _______________________________________________
>> Tutor maillist - Tutor at python.org
>> To unsubscribe or change subscription options:
>> http://mail.python.org/mailman/listinfo/tutor
>

 Oke,

So EAFP for me is one step to far ?

Roelof 		 	   		  


More information about the Tutor mailing list