[qmtest] Accessing "global" context
Stefan Seefeld
seefeld at sympatico.ca
Fri Jan 16 14:27:35 UTC 2004
Scott Lowrey wrote:
> Out of curiosity, why do I only see the qmtest keys when passing the
> context to "print"?
objects are printable in python if they provide a special method
__str__ (or __repr__) that generates a stringified representation of
self: http://www.python.org/doc/current/ref/customization.html#l2h-182
The 'Context' class derives from 'types.DictType', which provides
that, and as the derived class doesn't override it (adding its own
state) you only get to see the keys.
Regards,
Stefan
More information about the qmtest
mailing list