On input, this would allow you to assure inputs are of a given type, by checking and possible converting. This is even handy with JSON input, as the example demonstrates.
On output, you can have greater control over response generation, for example by using a custom JSON encoder or by applying templates to output.
For Python 3, it would be great to do things like:
On input, this would allow you to assure inputs are of a given type, by checking and possible converting. This is even handy with JSON input, as the example demonstrates.
On output, you can have greater control over response generation, for example by using a custom JSON encoder or by applying templates to output.