Classes as namespaces?
Ricardo Aráoz
ricaraoz at gmail.com
Fri Mar 26 16:51:23 EDT 2010
Luis M. González wrote:
> On 26 mar, 11:49, kj <no.em... at please.post> wrote:
>
>> What's the word on using "classes as namespaces"? E.g.
>>
>> class _cfg(object):
>> spam = 1
>> jambon = 3
>> huevos = 2
>>
>> breakfast = (_cfg.spam, _cfg.jambon, _cfg.huevos)
>>
>
> I see no problem.
> I wouldn't mix English, French and Spanish in the same recipe though...
>
Why? Do you think it might get over cooked? ;c)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100326/2f7001de/attachment-0001.html>
More information about the Python-list
mailing list