Singleton in Python Cookbook

O.R.Senthil Kumaran orsenthil at users.sourceforge.net
Thu Jul 26 05:33:58 CEST 2007


* Alex Popescu <nospam.themindstorm at gmail.com> [2007-07-25 21:30:14]:

> TypeError: type.__new__(SingleSpam): SingleSpam is not a subtype of type

That's hardly helpful. All I can think about is, SingleSpam is a class and you
have to defined the Class in your program, or it could be something else also.

> (I haven't presented the original code as I am not sure about copyrights).
> 
If there is an online version of the code, please point to us that. Or you can
ask the author of the book directly.

-- 
O.R.Senthil Kumaran
http://uthcode.sarovar.org



More information about the Python-list mailing list