Lawrence D'Oliveiro wrote: > In article <[EMAIL PROTECTED]>, > "ToddLMorgan" <[EMAIL PROTECTED]> wrote: > > >>I'm looking for the common types of mistakes that say a Java/C# or >>even C++ developer may commonly make. > > > Using subclassing when you don't have to. For instance, you might have a > Java method which takes an argument of type java.io.OutputStream to > which it writes. You might translate this to a Python method to which > you are careful to only pass instances of subclasses of file objects. > But in fact there is no necessity for this: you are free to pass any > object which has appropriate members. > > I suppose this is an instance of the more general rule: "using OO when > you don't have to".
Lawrence, I'm afraid you're confusing OO with "statically-typed class-based". FWIW, dynamic typing is part of OO since Smalltalk. -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list