[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] BUG: pygame.event.peek



An additional undocumented signature is available:
 pygame.event.peek(): return Event

The function returns the next event instead of a bool if no arguments are given.

The returned event is filled with nonsense (uninitialized) values if no event is in the queue. Suggest it return None in this case instead, or that the undocumented functionality be removed entirely.

Alex.