Tricks to do "enums"?

Aahz Maruch aahz at netcom.com
Mon May 8 19:18:08 CEST 2000


In article <391645E3.3B850279 at san.rr.com>,
Courageous  <jkraska1 at san.rr.com> wrote:
>
>Oh, I see what you're saying. So if I compare mymodule.ALPHA
>to an attribute thay may or may not be set to mymodle.ALPHA,
>I can do an identity-compare. Nifty.

You shouldn't even be doing that compare, per se.  As I said, you should
probably be doing a key lookup.
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

"It's not because my mind is made up that I don't want you to confuse me
with any more facts.  It's because my mind isn't made up.  I already have 
more facts than I can cope with.  So SHUT UP, do you hear me?  SHUT UP!"  
_The Shockwave Rider_, 1975



More information about the Python-list mailing list