overiding assignment in module

2005-10-25 Thread Viktor Marohnic
Hello. I would to do something like this. container = [] p1 = point() l1 = line() and i would like to override = method of the module so that its puts all objects into container. how i can do something like that. thanks for help, viktor. -- http://mail.python.org/mailman/listinfo/python-list

Re: overiding assignment in module

2005-10-25 Thread Viktor Marohnic
Ok thanks a lot. I think i got the point. I also thought that it could be possible to do something like this globals().__setitem__ = custom_setter but __setitem__ is readonly -- http://mail.python.org/mailman/listinfo/python-list