[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pygame] Constant identity



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