How do you call a method from the main() from a module to print base class attributes. Objects are contained in a list.


def show_employee(self):
        print 'Employee Name: ', self.__employee_name
        print 'Employee Number: ', self.__employee_number

I'm highly confused... so what are you asking to call? Assuming you have the attributes __employee_name and __employee_number on the class this function is a part of, this should run fine...
So I'm going to assume that the objects in this list you mentioned are instances of this class, in which case you could cycle through it and just call this function from each one, like this:

for instance in myList:

Hopefully this is what you wanted; just tell me if I was way off from your question or something.

commented: Awesome +1