pass objects to exec

zunbeltz zunlatex at
Fri Mar 21 14:15:40 CET 2003

I'm new programming in Python (and other languages :) )
I've created a 
class Group(Menmbers)

Members is a list tahat I use to initialize a group
i.e. GroupA = Group(Members)

The class Group have a method superclass that return a list MemberList
I want to create new instances of Class Group each initialized with
each element of MembersList and I want that each new instance have a
name I can use i.e. GroupA-A, GroupA-B, ... GroupA-n where n depends
on len(MenmberList).

How can I do such things, I have read about exec but i can pass
instances of Group.

Thanks in advance


More information about the Python-list mailing list