Hi Dave,

Sorry, I'm just now getting back to you.  See inline.

-T

On Mon, Jul 6, 2009 at 11:14 AM, Dave Kuhlman <dkuhl...@pacbell.net> wrote:

> <snip>
> There is no direct support for this.  Hmmm.  Maybe we should
> consider adding something that would help with coverage.
>
> You might try something like the following to get a list of classes:
>
>    $ grep "^class " file1.py file2.py | grep -Ev
> "(MixedContainer)|(_MemberSpec)"
>

Cool! Will do.


>
> 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. :)

-T

>
>
> But, I don't know of any way to find out which classes have not already
> been instantiated by your code.
>
> - 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/blackberry
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users

Reply via email to