On Thu, 26 Mar 2009 15:49:27 -0700, "Carolyn Johnston (MSNAR)" <car...@microsoft.com> > You are right, I didn't need to do the cast - was just transcribing some C# > code that did that for some reason. > > However, it is still a good question (instead of upcasting, think of > downcasting), and the answer isn't out there that I could find. >
You are trying to apply C++ and C# thinking to Python. This is a fundamental philosophical difference between the languages. Python doesn't care what the object IS. Python only cares what it EXPOSES. If it has a GetName() method, you can call it, no matter what the object ancestry was. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com