How to get/set class attributes in Python

John Machin sjmachin at
Sun Jun 12 15:35:15 CEST 2005

Kalle Anke wrote:
> On Sun, 12 Jun 2005 12:20:29 +0200, tiissa wrote
> (in article <42ac0c6d$0$10102$626a14ce at>):
>>You can 'hide' you getsetters using a property attribute[1]:
> Thanks, this is exactly what I was looking for

OTOH, I beseech you to consider an attitude transplant :-)

I.e. put your effort into writing code that allows people to do useful 
things, rather than opaque guff full of __blahblah__ that stops them 
from doing dopey or evil things they're usually smart enough or 
righteous enough not to do anyway.

BTW, what do you think of this:

sys.maxint = -12345

Cheers & HTH,

More information about the Python-list mailing list