Indeed, I'm on debian so I have pygame 1.9.1. Event.dict instead of
Event.__dict__ works great! Thank you!

On Fri, Mar 4, 2016 at 4:27 PM, Greg Ewing <greg.ew...@canterbury.ac.nz>
wrote:

> Stuart Laatsc wrote:
>
>> Well I don't really /need/ the __dict__ functionality, but it would be
>> /convenient/ to have /and it is included/ in the official documentation.
>>
>
> Are you sure you're not using an older version of pygame?
> If I remember rightly, Event used not to have '__dict__',
> only 'dict'.
>
> Pygame 1.9.2 seems to have both:
>
> >>> pygame.__version__
> '1.9.2pre'
> >> e = event.Event(42)
> ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__',
> '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__',
> '__init__', '__le__', '__lt__', '__ne__', '__new__', '__nonzero__',
> '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__',
> '__str__', '__subclasshook__', 'dict', 'type']
> >>> e.__dict__ is e.dict
> True
>
> --
> Greg
>

Reply via email to