On Fri, May 7, 2021 at 1:12 AM Shreyan Avigyan
<[email protected]> wrote:
>
> David Mertz:
> > I am a strong -1 on this
>
> Thanks for your feedback. But I'm not suggesting introducing a new behavior. 
> The @property already creates read-only member variables. What I'm suggesting 
> is that introducing a new keyword or decorator as required to create a 
> variable that can be modified from within the class but not outside the class.
>

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.

And, as many people have stated, this is not anything that most Python
programmers want.

ChrisA
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/HVG52G6372UANEAUYDIL47J7F4IRLINK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to