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