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

[pygame] How do assignments work?



In Pygame a Rect has several redundant members that can all be assigned
to. For example, you can assign to rect.topleft or rect.center, and the
effect is similar. But assigning to either affects the other, so doesn't
this require overloading the assignment operator? Python doesn't allow
that, does it?

-- 
  They had a big meeting, drank some beer and had some pizza and
  decided 'A' would be 65.
       - Jim Greenly, professor at Georgia Institute of Technology