On 11/20/05, Simon Willison <[EMAIL PROTECTED]> wrote:
> In current Django, you might do this:
>
> a = int(request.GET['a'])
>
> With smart input filtering, you would do something like this instead:
>
> a = request.GET.as_int('a')That's quite an interesting idea! The immediate question I have is: What would it do if "a" is empty or not an integer? Raise an exception? Return an empty string? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org
