Re: Question about classes and possible closure.

2007-02-21 Thread James Stroud
James Stroud wrote: > Steven W. Orr wrote: > >> This is all an intro learning experience for me, so please feel free >> to explain why what I'm trying to do is not a good idea. >> >> In the Cookbook, they have a recipe for how to create global constants. >> >> - >> class _const: >

Re: Question about classes and possible closure.

2007-02-21 Thread James Stroud
Steven W. Orr wrote: > This is all an intro learning experience for me, so please feel free to > explain why what I'm trying to do is not a good idea. > > In the Cookbook, they have a recipe for how to create global constants. > > - > class _const: > class ConstError(TypeErro

Re: Question about classes and possible closure.

2007-02-21 Thread Dustan
On Feb 21, 4:30 pm, "Steven W. Orr" <[EMAIL PROTECTED]> wrote: > This is all an intro learning experience for me, so please feel free to > explain why what I'm trying to do is not a good idea. > > In the Cookbook, they have a recipe for how to create global constants. > > - > class

Question about classes and possible closure.

2007-02-21 Thread Steven W. Orr
This is all an intro learning experience for me, so please feel free to explain why what I'm trying to do is not a good idea. In the Cookbook, they have a recipe for how to create global constants. - class _const: class ConstError(TypeError): pass def __setattr__(self,n