class objects in dictionaries

mdvorak at ninell.cz mdvorak at ninell.cz
Sat Feb 5 11:06:26 EST 2000


Hi all,

I would like to put all my class definitions in a dictionary
__objects__ in main global namespace. I know I can do it by
putting the class objects into module called __objects__ and
import this module, but that way classes would have different
global namespace and I need them to have the same global
namespace as the main script.

I need to do something like:

from class_objects import * to __objects__

Is there any way in Python how to do this?

Thank you for help.

Martin


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list