Re: Property Descriptor - Public Getter, Private Setter

2007-07-18 Thread James Stroud
gamehack wrote: > Hi all, > > I was looking around the net to figure out how I can use the > property() descriptor to make a property readable by everyone and only > settable by the class or any derived classes. Thanks. > > Regards, > gh > Congratulations, you have discovered a principal use of

Re: Property Descriptor - Public Getter, Private Setter

2007-07-18 Thread Diez B. Roggisch
gamehack wrote: > Hi all, > > I was looking around the net to figure out how I can use the > property() descriptor to make a property readable by everyone and only > settable by the class or any derived classes. Thanks. Forget it. You can try and come up with an implementation that will check th

Property Descriptor - Public Getter, Private Setter

2007-07-18 Thread gamehack
Hi all, I was looking around the net to figure out how I can use the property() descriptor to make a property readable by everyone and only settable by the class or any derived classes. Thanks. Regards, gh -- http://mail.python.org/mailman/listinfo/python-list