[Python-3000] Implementations: A syntax for extending method dispatching beyond type/class inheritance

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Dec 8 00:40:07 CET 2006

Dave Anderson wrote:

> def get_name(arg: AnyClass.name):	# AnyClass will magically have
> 	return arg.name()		# a reference to any method name
> 					# somehow

What if you want to say that arg has more
than one such method?

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | Carpe post meridiem!          	  |
Christchurch, New Zealand	   | (I'm not a morning person.)          |
greg.ewing at canterbury.ac.nz	   +--------------------------------------+

More information about the Python-3000 mailing list