[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pygame] Constant identity
- To: PyGame Users <pygame-users@seul.org>
- Subject: [pygame] Constant identity
- From: Magnus Lie Hetland <magnus@hetland.org>
- Date: Mon, 3 Jun 2002 23:05:17 +0200
- Delivered-To: archiver@seul.org
- Delivered-To: pygame-users-outgoing@seul.org
- Delivered-To: pygame-users@seul.org
- Delivery-Date: Mon, 03 Jun 2002 17:05:20 -0400
- Mail-Followup-To: PyGame Users <pygame-users@seul.org>
- Reply-To: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-Agent: Mutt/1.2.5i
Hi!
I think I've asked about this before, but is it safe to rely on
constant identity in Pygame? I.e. is it OK to say
if event.type is QUIT: ...
rather than
if event.type == QUIT: ...
? (That would, of course, require that the event module used the same
constants, and not just equal integers.)
I believe that Pete confirmed this earlier, but I just need to make
sure :)
--
Magnus Lie Hetland The Anygui Project
http://hetland.org http://anygui.org
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org