views:

160

answers:

1

I'm a Python newbie with a very particular itch to experiment with Python's dot-name-lookup process. How do I code either a class or function in "make.py" so that these assignment statements work succesfully?

import make

make.a.dot.separated.name = 666
make.something.else.up = 123
make.anything.i.want = 777
+7  A: 
John Kugelman
Is there somewhere we can read on the `dict` attribute and the way this code sample works?
Geo
@John Kugelman, I am in awe of the clean elegant simplicity of your answer. Simply beautiful.
steveha