From: paul@... Date: 2002-09-06T09:04:31+09:00 Subject: Re: Ruby aesthetics On Fri, 6 Sep 2002, William Djaja Tjokroaminata wrote: > Hi Gavin, > > It seems that we agree on most of the stuff. I just want to add that, > being a "flexible" language Python is, there is a way to make data private > in Python, as discussed in: > > http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&threadm=920m9h011uh%40news2.newsguy.com&rnum=4&prev=/groups%3Fq%3Dtjokroaminata%2Bgroup:comp.lang.python.*%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26selm%3D920m9h011uh%2540news2.newsguy.com%26rnum%3D4 That thread is not about data hiding. It is about fixing the members allowed on instances in advance, and perhaps making some read-only. This is possible in Python 2.2 using __slots__. See section 2.4 of this document: http://www.amk.ca/python/2.2/ Also see: http://www.python.org/2.2/descrintro.html#property Paul Prescod