8 Nov 2012

Python 'super()' function bug

I have a diamond inheritance and used super() function to avoid issues.

# TypeError: super(type, obj): obj must be an instance or subtype of type #
I got this error message. I've seeked for solutions for this problem.
First you could try to reorder the importing. Sometimes it helps but not in every case. There is still the issue probably you have too many reload in baseclasses. Remove them.

I hope it is handy for you.

No comments:

Post a Comment