[Tutor] Enumeration and constant
Bob Gailer
bgailer at alum.rpi.edu
Tue May 30 01:24:09 CEST 2006
Please always reply to the list as well as me. Others may be able to
help, and we all learn from our interactions.
Brendan Cheng wrote:
> how about custom constant type?
> Does python provide?
No. Python tries to be as "light" as possible. There is a convention
amongst Python programmers to use upper case names to represent
constants, e.g. RED = 3.
--
Bob Gailer
510-978-4454
More information about the Tutor
mailing list