On 21 Nov 2005, at 00:57, Ian Holsman wrote:
I think it should raise an exception, and you should pass a default
key in there if it isn't present.
so the function might be written as
a = request.GET.as_int('a', 0)
I like this. If a default argument is given, return that. Otherwise, raise a BadInput exception (or similar).
Cheers, Simon
