[Tutor] Function type?

Alan Gauld alan.gauld@blueyonder.co.uk
Tue Jun 10 18:51:01 2003


Zak,

> But what's the shortcut keyword for a function type?

All the types are defined in the types module so do:

import types
dir(types) to see a list.

One of them is FunctionType...

> Is there a keyword I'm being oblivious to? Or do I need to resort to
this
> dummy function thing?

You could have used a lambda to save the dummy function,
but the better solution is to use the Types module.

Alan G.