next up previous contents
Next: 5.2.7 The Values Declaration Up: 5.2 More About Types Previous: 5.2.5 The Empty Type

5.2.6 Function Types

     

 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 global ftype declaration, then Python will compute a function type from the definition, providing a degree of inter-routine type inference, see section 5.3.3.


next up previous contents
Next: 5.2.7 The Values Declaration Up: 5.2 More About Types Previous: 5.2.5 The Empty Type

Raymond Toy
Mon Jul 14 09:11:27 EDT 1997