> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Lee Harr > Sent: Saturday, June 25, 2005 3:08 PM > To: [email protected] > Subject: Re: [Edu-sig] Lined up for EuroPython > > >"method_get" is a package level funtion which does compares the __sigs > list > >to the args for all factory functions and gives back the information > >necessary to call the correct class with the correct arguments in the > >correct order. > > > Reminds me of this article about "multiple dispatch" : > http://www-106.ibm.com/developerworks/linux/library/l-pydisp.html >
See the relationship - but the article is a little too technical for me to understand what is the same and what is different about what I'm doing and "multiple dispatch". Usually "too technical for me" means mostly a lack of a grasp of the vocabulary, and I am a bit stubborn in not working to get up to speed on programming vocabulary. I never understood what a "factory function" was until I invented one ;) - and only then realized it had been invented a million times before. Starting by wishing that Python had the kind of method overloading that Java features, I ended up with a solution that more concisely, more specifically, and more completely solves the problem I was trying to solve than I ever would have come to had Python in fact *had* method overloading. Though method overloading would have been *easier* ;) Art _______________________________________________ Edu-sig mailing list [email protected] http://mail.python.org/mailman/listinfo/edu-sig
