fumanchu wrote: > When you write normal Python functions, do you always use **kwds? The > same reasons apply. Named arguments make your code cleaner, for sure, > especially with default values. Compare: [snip] > I usually reserve **kwds for times when I'm passing the kwds on to a > common function for processing.
Thanks for that input Robert. For most "normal" functions I don't use **kwds, however, I don't often create functions that accept too many variables either. Many of my forms have 2-3 hidden variables plus 4-5 form fields. One form has 42 fields. I sure don't want to have a method with 42 variables in the declaration! note: I know 42 fields is a lot of fields, however many of those fields are "groups" of data that the user will leave as the default...it's really not as bad as it sounds. I did toy with the idea that some form handlers with few variables should be named arguments. I just don't know that I want to tie my current functions to the current forms quite that tightly. Are form handling functions really "normal" functions or should we consider them something slightly different? Chris --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

