durusmail: quixote-users: calling arguments
calling arguments
2002-08-05
2002-08-05
2002-08-05
2002-08-05
2002-08-06
2002-08-06
2002-08-06
calling arguments
Holger Duerer
2002-08-05
 --- Andrew Kuchling  wrote: > On Fri,
[...]
> Zope's HTTPRequest had a feature something like this, where
> something
> like fieldname:int would automatically convert the field to
> integer.
> We ripped it out because the argument parsing code added a lot of
> complexity that we never used.  (See rev. 1.17 of http_request.py,
> which discarded about 400 lines of code.)

As I understood Andreas's comment, he was wondering why the request
arguments weren't passed straight into the function as parameters
(i.e. matching function parameter names with request field names).
There would be no need to parse the arguments into types other than
strings, i.e. that is a concept unrelated to this.

I am not sure, how much code this would save, but it might
make the code more readable...

    Holger


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


reply