How to inspect a variable (sys.modules) for changes in the execution of a program?

Mel mwilson at the-wire.com
Tue Feb 15 16:55:24 EST 2011


Emile van Sebille wrote:

> Out of curiosity, if it's immutable, what approach might you try to
> capture/trace reassignment?  I've got a toy tracer that breaks with
> simple assignment:

AFAIK you'd have to replace the namespace dictionaries with dictionary-like 
things that would react to rebinding.

	Mel.




More information about the Python-list mailing list