First it would seem useless or not necessary but soon this becomes clear. 1) It would help programmers debug their code easily and help them find out that the bug's not in the constant, that's for sure. 2) This would allow another branch of OOP programming to enter Python. Read-only member variables. There are Private members in Java and C++. But I believe they are not their to hide things. They are there to debug. _______________________________________________ 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/PU4DFQRCAEXXQVECJ3IIZQK2UQLAENCX/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] Re: Introduce constants in... Ethan Furman
- [Python-ideas] Re: Introduce constant... Shreyan Avigyan
- [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