2009/2/13 [email protected] <[email protected]>: > > Thanks to both of you. > Final questions remains : > Is this some syntax sugar (hack) only for ctypes > or ctypes classes do this with the overloading of * operator ?
It's an overload of the * operator, but implemented in C rather than Python, for efficiency reasons. However, from an interface perspective, it behaves identically to any other operator. You can access ctypes.c_float.__mul__ if you really want. Martin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
