From: Eric F. <ef...@ha...> - 2015-05-14 04:36:51
|
On 2015/05/13 5:47 PM, Neil Girdhar wrote: > You're right. My angle is I just want the setters and getters. Writing > set_ and get_ feels like the C++ prison I thought I had escaped :) > John Hunter once commented that if he were doing it over again he would not have put in all the set_ and get_; they were a legacy of his origins as a C++ programmer. I think he would have started with simple attributes, which would have been adequate in the early stages. Properties were very new--only introduced in Python 2.2, at the end of 2001. Eric |