<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">How do you propose, instead, for the constantness of something to be indicated?</blockquote><div>That's a good question. I honestly don't use constants all that much, I like to move such things out to config files. For a constant like math.pi, it's never been caps, yet people know it's not a great idea to change it. There are a lot of tools to indicate constantness:<br><br>1) provide a property to access an otherwise _plz_dont_touch_variable<br>2) Use an Enum<br>3) Use documentation to say: treat this as constant<br>4) Rely upon consenting adults to not change variables outside of scope. It's weird to manipulate math.pi because it's in a separate module.<br><br>I stopped using all caps a long time ago and it just hasn't created a problem because manipulating global variables without knowing what they are is such a bad idea to begin with.<br></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jan 4, 2019 at 5:16 PM Chris Angelico <<a href="mailto:rosuav@gmail.com">rosuav@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Jan 5, 2019 at 10:10 AM Abe Dillon <<a href="mailto:abedillon@gmail.com" target="_blank">abedillon@gmail.com</a>> wrote:<br>
>><br>
>> So you're saying we should prefer a future where it's an inconsistent mess?<br>
><br>
> No. And please don't straw man. It's a very annoying argumentative tactic. I prefer a future where all caps aren't used. I understand that the change I propose won't magically transport us there, but I don't think it justifies encouraging all caps. As it is, the mix of all caps, camel-case, and snake-case IS and inconsistent and visual mess. Discouraging all caps will only result in a diminishing occurrence of all caps.<br>
><br>
>> it's.more important to have a standard than what that standard is. And we do have a strong standard today.<br>
><br>
> I understand that there's a barrier to change, but there's also a circular logic to resisting change because adhering to a standard is good.<br>
><br>
> How bad would it really be to remove the line about constants being all caps from PEP-8?<br>
<br>
How do you propose, instead, for the constantness of something to be indicated?<br>
<br>
ChrisA<br>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div>