I'm aware that Python is a "Consenting Adults" language but I think Python should provide this functionality at least. This idea doesn't actually make it like Java. Because why should we mess around with that member anyway. Sometimes we want to provide members that users must use but mustn't change. Well if the user does, then "crash"! Suppose we have filename member and we must access that but if we change it by any chance then what will happen is Python will not close the file instead it will create a new file leaving it in an undefined state - "Half written half not". _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/HUCKCWP6T323KQ7HOZGUIVVAECBXPXJK/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] Re: Introduce constant... Stestagg
- [Python-ideas] Re: Introduce cons... David Mertz
- [Python-ideas] Re: Introduce ... Steven D'Aprano
- [Python-ideas] Re: Intro... David Mertz
- [Python-ideas] Re: Intro... Rob Cliffe via Python-ideas
- [Python-ideas] Re: Introduce cons... Steven D'Aprano
- [Python-ideas] Re: Introduce constant... Damian Shaw
- [Python-ideas] Re: Introduce cons... Ethan Furman
- [Python-ideas] Re: Introduce constants in Pyth... Shreyan Avigyan
- [Python-ideas] Re: Introduce constants in... Stestagg
- [Python-ideas] Re: Introduce constant... Shreyan Avigyan
- [Python-ideas] Re: Introduce cons... Chris Angelico
- [Python-ideas] Re: Introduce ... Shreyan Avigyan
- [Python-ideas] Re: Intro... Stestagg
- [Python-ideas] Re: I... Shreyan Avigyan
- [Python-ideas] Re: I... Steven D'Aprano
- [Python-ideas] Re: I... Shreyan Avigyan
- [Python-ideas] Re: I... Steven D'Aprano
- [Python-ideas] Re: Introduce ... Abdur-Rahmaan Janhangeer
- [Python-ideas] Re: Introduce ... Steven D'Aprano
- [Python-ideas] Re: Intro... Chris Angelico