6 May
2021
6 May
'21
6:01 p.m.
Chris:
That would require some definition of what's "within" and what's "outside" the class, and whatever definition you use, it won't work with all forms of dynamic code.
Yes, implementing that will be hard. But the question is I can't quite understand why this is not acceptable by the Python community? Private members may be a disaster but I don't think readonly attributes is. In fact that's what have been implemented for years using @property.