function with a lot of parameters --maintainability issue

Russell Wallace rwallace at esatclear.ie
Fri Nov 3 02:03:02 EST 2000


On Tue, 31 Oct 2000 19:16:26 GMT, etsang at my-deja.com wrote:

>Hi all,
>
>I have several functions that takes in more than 255 parameters and
>cause Python to complain about com_addbyte error out of range.

The dictionary solution someone suggested is probably the best one.

I have a question, though: why do you need a function with more than
255 parameters?  (Not a rhetorical question - if you say you do, I'm
prepared to take your word for it - but I'd be fascinated to know why,
it's the first time I've ever heard of one with more than a dozen or
so.)

-- 
"To summarize the summary of the summary: people are a problem."
mailto:rwallace at esatclear.ie
http://www.esatclear.ie/~rwallace



More information about the Python-list mailing list