On Oct 28, 1:53 am, cjrh <[email protected]> wrote:
> On Oct 27, 5:43 pm, VP <[email protected]> wrote:
>

>
> def insertdog():
>    name, owner, age = request.args
>
> I am unconvinced the other way is better.

I haven't tested  this, and correct me if I am wrong but this is
equivalent to

name, owner, age = request.args[0], request.args[1], request.args[2]

request.args[0] doesn't have the nice features of request.args(0).


The other way is more natural because controller's "arguments"
correspond exactly to functions' arguments in Python.  It's
conceptually better.  Now, controller functions have no, in fact
cannot have, arguments.  This I think is strange.

Reply via email to