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

Re: [pygame] pygame Event



Well I don't really need the __dict__ functionality, but it would be convenient to have and it is included in the official documentation.

On Fri, Mar 4, 2016 at 2:44 AM, Martti KÃhne <mysatyre@xxxxxxxxx> wrote:
On Fri, Mar 4, 2016 at 6:55 AM, Ian Mallett <ian@xxxxxxxxxxxxxx> wrote:
> As a sidenote, I haven't ever had occasion to use this functionality, as
> there are more idiomatic and clear ways to retrieve information about
> events' data.
>


This really is the key point here. Looking at events, you first check
ev.type and will do different things based on the type anyway. And if
you need to debug things, the respective string representation, str()
and repr() both appear to boil down to the same, really informative
result.

cheers!
mar77i