[Chicago] ALL CAPS?
Brantley Harris
deadwisdom at gmail.com
Fri Feb 1 01:34:13 CET 2013
Please note that you should rarely if ever use module level constants.
They are most often used when interfacing with a C program that has a lot
of enums. e.g. socket.AF_INET
On Thu, Jan 31, 2013 at 9:39 AM, Ryan Manly <ryan.manly at gmail.com> wrote:
> I don't like it when people use them in bash but here you go...
>
> Constants
> Constants are usually defined on a module level and written in all capital
> letters with underscores separating words. Examples include MAX_OVERFLOW
> and TOTAL.
> sauce: http://www.python.org/dev/peps/pep-0008/#naming-conventions
>
> Ryan M. Manly
> Glenbrook High Schools
>
>
> On Thu, Jan 31, 2013 at 9:32 AM, Randy Baxley <randy7771026 at gmail.com>wrote:
>
>> Please tell me it ain't so?
>>
>> I mentioned the other night that I did not like some variable names in a
>> template for the Rice course. What I did not like was the all caps. In
>> week 5s lecture though he says all caps is a Python convention for
>> constants that will not change in a program.
>>
>> I had my first negative CAPS conversation in about '88 due to needing to
>> learn to send duplex messages from a IIC when the internet was a bunch of
>> hobbiest that had phone lines that could access more than one area code and
>> set their PCs up as servers.
>>
>> _______________________________________________
>> Chicago mailing list
>> Chicago at python.org
>> http://mail.python.org/mailman/listinfo/chicago
>>
>>
>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20130131/70027534/attachment.html>
More information about the Chicago
mailing list