next up previous contents index
Next: The Values Declaration Up: More About Types in Previous: The Empty Type   Contents   Index


Function Types

types function

function types are understood in the restrictive sense, specifying:

This is consistent with the new interpretation of function types and the ftype declaration in the proposed X3J13 ``function-type-argument-type-semantics'' cleanup. Note also, that if you don't explicitly declare the type of a function using a globalftype declaration, then Python will compute a function type from the definition, providing a degree of inter-routine type inference, see section function-type-inference.


next up previous contents index
Next: The Values Declaration Up: More About Types in Previous: The Empty Type   Contents   Index
Peter Van Eynde 2000-02-08