On Jul 29, 1:30 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On Jul 29, 5:15 am, Heiko Wundram <[EMAIL PROTECTED]> wrote: > > > I can't dig up a simple example from code I wrote quickly, but because of > > the > > fact that explicit comparisons always hamper polymorphism > > I'm not going to take your word for it. Do you have code that > demonstrates how "if x" improves polymorphism relative to simple > explicit tests?
And, in case it wasn't obvious, the way to demonstrate that "if x" improves polymorphism relative to simple explicit tests would be posting an example where "if x" works but a simple explicit test doesn't. So don't accuse me of changing the question on you: it's the same question. You see, what you are stating and expecting me to take for granted is exactly what I'm asking for a concrete example of. Carl Banks -- http://mail.python.org/mailman/listinfo/python-list