problem with str()

Alex Martelli aleax at mac.com
Fri Mar 16 04:59:15 CET 2007


Steve Holden <steve at holdenweb.com> wrote:
   ...
> >> Get yourself a stuffed bear, and next time you have this kind of problem
> >> spend a few minutes explaining to the bear exactly how your program
> >> can't possibly be wrong. Works like a charm.
> > 
> > A rubber ducky works much better for that, btw -- more easily washable
> > than a stuffed bear, for example.
> > 
> But stuffed bears are so much more knowledgeable about the minutiae of
> software design.

And yet, the key to Python's strength is duck typing -- if you can teach
the duck to type, you've got it made.


Alex



More information about the Python-list mailing list