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

Peter Hansen peter at engcorp.com
Sat Dec 11 00:06:42 CET 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