Thanks!
-T
On Tue, Jul 7, 2009 at 4:35 PM, Dave Kuhlman <dkuhl...@pacbell.net> wrote:
> From: Tennis Smith
> To: Dave Kuhlman
> Cc: generateds-users@lists.sourceforge.net
> Sent: Tuesday, July 7, 2009 12:11:52 PM
> Subject: Re: [Generateds-users] Any way to ... ?
>
> > > Would it help to have a script that generated a dictionary of class
> > > names and classes? For example:
> > >
> > > ClassDictionary = {
> > > 'Class_1': Class_1,
> > > 'Class_2': Class_2,
> > > o
> > > o
> > > o
> > > }
> > >
> > > Then, in Python, you could do something like the following:
> > >
> > > instances = []
> > > for name, class_ in ClassDictionary:
> > > instance = class_()
> > > instances.append(instance)
> > > return instances
> > >
> > > If that would help, I'll look into it.
> >
> >
> > That would be helpful, but I wouldn't call it a high priority. The
> > grep approach is probably enough. :)
>
> I must have been looking for something to do yesterday. I went
> ahead and wrote it. So, generate_coverage.py is attached. The
> name (generate_coverage.py) is a bit excessive. All it really does
> is create that dictionary of class names and classes.
>
> - Dave
>
>
> --
>
>
> Dave Kuhlman
> http://www.rexx.com/~dkuhlman <http://www.rexx.com/%7Edkuhlman>
>
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users