type error raise

Chris Rebert clp2 at rebertia.com
Thu May 27 07:22:25 EDT 2010


On Thu, May 27, 2010 at 4:16 AM, timo verbeek <timoverbeek10 at gmail.com> wrote:
> what is the problem with this code?
>
> _base={"repeat":False,"string":"Progres has failed","works":True}
> print _base
> class dictreturn(_base):pass

You can't subclass a dictionary object, you can only subclass other
classes. What on earth are you trying to do?

Cheers,
Chris
--
http://blog.rebertia.com



More information about the Python-list mailing list