Steve,

You are correct that I worry too much about types.   It's *really* hard not
to - having so many years of C in my head (and I am not exactly a
programmer).

I realize that "if you don't understand duck typing, you don't really
understand Python" - and that's why I am struggling to learn about this.

It's hard to writing a routine and not thinking what kind of parameters will
be passed down from above.  In the old days, we go out of the way to do that
so programs don't fail in mysterous ways.


"Steve Holden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> it's me wrote:
>
> > Okay, Nick, I didn't know you can pass a "Class" rather then an
instance.  I
> > have to chew on what your example does.
> >
> > But no, I want to pass an instance of a Class.  But how do I know that
the
> > calling routine *did* pass me a class - pardon me: an instance of a
Class?
> >
> You should Google for "duck typing" and stop worrying so much about what
> your functions//methods have been passed.
>
> At least, that's the traditional Python approach. I suspect you are
> still trying to program in C in Python :-)
>
> regards
>   Steve
> -- 
> Steve Holden               http://www.holdenweb.com/
> Python Web Programming  http://pydish.holdenweb.com/
> Holden Web LLC      +1 703 861 4237  +1 800 494 3119


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to