I think it's cool
class ClassName:
def __init__( self ):
if self.__class__ == ClassName:
raise NotImplementedError, "Cannot create object of this class"
2009 All Rights Reserved Google app engine.
Blogger Templates created by Deluxe Templates • Wordpress designed by Acosmin
0 comments:
Post a Comment