pep 8 constants

Robin Becker robin at reportlab.com
Wed Feb 25 11:56:04 CET 2009


Bruno Desthuilliers wrote:
> 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 ?-)
......
no dispute about that :)
-- 
Robin Becker




More information about the Python-list mailing list