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

[pygame] Rect-style a bit picky?



Hi,

in my project I use objects with  "rect" attribute as rectstyle
arguments to some methods, e.g. collidelistall.

I have noticed that it is a big source of hard-to-track errors
(i.e. untraceable, sure sign that the source of error lies in the C-code
libraries). e.g. "Class CanvasItem_Image has no attribute __len__"
and others.

But when I changed my CanvasItem_Image to be new-style class, the
problems seem to have vanished. 

Is it a bug or feature? i.e. are rectstyles required to be new-style classes?
Or is the bug caused by something else?

-- 
Jaroslav Benkovsky

GCM/IT d- s:+ a- C++(+++) ULOI++++$ P++ L+++>++++ E+ W++
N w--- PS+ PE++ Y+ PGP R+ tv- b+++ D+ e+++ y+