deleting global namespaces
aahz at netcom.com
Tue Feb 8 01:55:56 CET 2000
In article <87hiam$6lk$1 at nnrp1.deja.com>, <martindvorak at my-deja.com> wrote:
>That's clear but it does not solve my problem. I know objects and use
>them extensively, but I need to divide the whole application (which
>consists of hundrends of objects) into independent components each
>with its own global namespace so that component's objects can use this
>global namespace independently on other objects in other components.
In that case, you need a two-tiered (or more) object system, where
higher level objects contain instances of lower-level objects in a list
or dict. The higher level object provides the namespace to the lower
level objects through callback functions. Note that you'll need to be
VERY careful about circular references with a system like this.
--- Aahz (@netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Copyright 2000 by aahz at netcom.com. If you see any links around individual
words in my posts, they have been put there in violation of copyright (most
likely by remarq.com). I encourage you to boycott any ads you see links to.
More information about the Python-list