Is duck-typing misnamed?

Joe test at joepgen.com
Sun Aug 28 05:25:25 EDT 2016


Am 28.08.2016 um 00:34 schrieb Terry Reedy:
> On 8/26/2016 7:58 PM, ROGER GRAYDON CHRISTMAN wrote:
>> "If it walks like a duck, quacks like a duck,... "
>>>> so there is indeed precedence for this so-called 'duck typing'
>>>>>> but wouldn't it be more Pythonic to call this 'witch typing'?
>>>> "How do you know she is a witch?"
>>>> "She looks like one."
>> Given that people were once burned to death for 'looking like a witch'
> (or sounding or acting), and can still suffer socially for such reasons,
> this it not funny to me. We should stick with ducks.
>Agree.


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /