[python-nl] extending classes
Martijn Pieters
mj at python.org
Thu Apr 20 09:59:16 CEST 2006
Chris Niekel wrote:
> TypeError: super() argument 1 must be type, not classobj
>
> En wat nou het verschil tussen een type en een classobj is, geen idee.
> Dit gaat fout in python 2.3 en 2.4
De root classe van de inheritence boom moet object zijn:
class test(object)
Zie http://docs.python.org/lib/built-in-funcs.html#l2h-70:
"super() only works for new-style classes."
Martijn Pieters
More information about the Python-nl
mailing list