Re: Friday Finking: Enum by gum

2020-01-24 Thread Rhodri James
On 24/01/2020 04:26, DL Neil via Python-list wrote: Questions: Have I made proper sense of this? (please don't laugh too much) Um. My basic take on enums is that they provide a convenient namespace to collect together related constants. API flags and opcodes are an obvious example of relat

Friday Finking: Enum by gum

2020-01-23 Thread DL Neil via Python-list
When, why, and how do you employ Python/PSL enums? TLDR? Fair enough! Much of this text recounts a voyage of discovery. More specific questions appear at the bottom... Last century, when I learned to program (in-between working part-time at the dinosaur farm) neither FORTRAN II/IV nor COBOL