Quote:
> 1. Need to get a list of names of all instances of a certain type. For
> instance, the GUI process (a separate Unix process) will want to query
> Python for a list of names of all variables of type int.
Hmm, I'm not sure why you want this, and there seems to be some
confusion: a list of all instances of type 'int' won't tell you about
all variables containing int objects; with "a list of names of all
variables", do you mean only global variables or also local variables,
and perhaps also anonymous "variables" stored away in lists or
dictionaries? A list of names of all global variables of a given type
can certainly be assembled (at some cost -- you'll have to scan all
modules); a list of all instances would require modifications to the
implementation. (Actually, there's some optional debugging code that
keeps track of *all* objects, which you could use as a start there.)
Quote:
> 2. The GUI process will want to be notified whenever a new global
> variable is created or destroyed in Python.
Again, why exactly do you need this? Python doesn't support
notification of changes to variables. Since globals are stored in
dictionaries, it should possible to modify the dictionary
implementation to optionally set traps on dictionary changes.
Quote:
> 3. Since our system is a multiprocessor one, we'll need to modify the
> Python's allocation procedure for built in types to allocate them in
> shared space.
Pythin uses malloc, so if you can substitute your own malloc, you're
set.
Quote:
> 4. External processes need to send command strings to Python for it to parse.
No problem there!
URL: <http://www.python.org/~guido/>