on 12/7/2006 6:40 PM Greg Ewing wrote:
> 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?
>
def get_name_height(arg: ArgClass.name, AnyClass.height):
return arg.name(), arg.height()
alternatively:
name_height = Implementation(ArgClass.name, AnyClass.height)
def get_name_height(arg: name_height):
return arg.name(), arg.height()
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe:
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com