Is duck-typing misnamed?

ROGER GRAYDON CHRISTMAN dvl at psu.edu
Fri Aug 26 19:58:43 EDT 2016


"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."

etc.


I do grant that ultimately, the duck does come into play, since the witch
weighs the same as a duck.

Roger Christman
Electrical Engineering and Computer Science
Pennsylvania State University





More information about the Python-list mailing list