n00m wrote:
Or just raise an exception in __init__(),..

Then we are forced to handle this exception outside of class code.
It's Ok. Never mind.
--------------------

Next thing.
I can't understand why we can get __name__, but not __dict__,
on the module level?


print __name__
print __dict__

If the global namespace contained itself, as a dict, there would be an infinite loop.

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to