Re: [Tutor] Question about large numbers of arguments

2006-04-05 Thread Hugo González Monteverde
Dana Robinson wrote: > > Have the functions take large numbers of parameters. > > or > > Create an options class to pass the options around. > > Pythonically, I heard the distinct scream of DICTIONAR in my head. Hugo ___ Tutor maillist - Tut

Re: [Tutor] Question about large numbers of arguments

2006-04-05 Thread Python
On Wed, 2006-04-05 at 12:34 +0100, Alan Gauld wrote: > > Suppose you have a situation where you have a large number of command-line > > options that you will parse with getopt. You want to keep track of these > > as you move around in the code and do various things. > > > > Is it more Pythonic to:

Re: [Tutor] Question about large numbers of arguments

2006-04-05 Thread Alan Gauld
> Suppose you have a situation where you have a large number of command-line > options that you will parse with getopt. You want to keep track of these > as you move around in the code and do various things. > > Is it more Pythonic to: > > Have the functions take large numbers of parameters. > > C

Re: [Tutor] Question about large numbers of arguments

2006-04-04 Thread Bob Gailer
Dana Robinson wrote: > Hello, > > Suppose you have a situation where you have a large number of command-line > options that you will parse with getopt. You want to keep track of these > as you move around in the code and do various things. > > Is it more Pythonic to: > > Have the functions take la

[Tutor] Question about large numbers of arguments

2006-04-04 Thread Dana Robinson
Hello, Suppose you have a situation where you have a large number of command-line options that you will parse with getopt. You want to keep track of these as you move around in the code and do various things. Is it more Pythonic to: Have the functions take large numbers of parameters. or Crea