Robin Becker a écrit :
well this sort of awful hackery will allow you to put read only constants on an existing module

(snip example code)

so I guess if you write your own module class and then use a special importer you can create module like objects with read only attributes.


Fine technical solution. But, err, isn't all this a bit overkill for something that can easily be handled by a simple convention ?-)

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

Reply via email to