How do I do this? (eval() on the left hand side)

Peter Hansen peter at engcorp.com
Fri Dec 10 18:06:42 EST 2004


Carl Banks wrote:
> It's a bit more honest to set module attributes using setattr than dict
> access, I would say.  

Granted.

But I think it's also more honest to change a module's dict by
using globals() than by using a setattr call. <0.500 wink>

-Peter



More information about the Python-list mailing list